lama/registration_pipeline/run_lama.py
def invert_volumes(config: LamaConfig):
    """
    Invert volumes, such as masks and labelmaps from population average space to input volumes space using
    pre-calculated elastix inverse transform parameter files

    Returns
    -------
    Status of inverions for masks and labels

    """

    invert_config = config['inverted_transforms'] / PROPAGATE_CONFIG

    if config['stats_mask']:
        mask_inversion_dir = config.mkdir('inverted_stats_masks')
        PropagateLabelMap(invert_config, config['stats_mask'], mask_inversion_dir, threads=config['threads']).run()

    if config['label_map']:
        labels_inverion_dir = config.mkdir('inverted_labels')
        PropagateLabelMap(invert_config, config['label_map'], labels_inverion_dir, threads=config['threads']).run()

    Invert volumes, such as masks and labelmaps from population average space to input volumes space using
    pre-calculated elastix inverse transform parameter files

    Returns
    -------
    Status of inverions for masks and labels

    
Invert volumes, such as masks and labelmaps from population average space to input volumes space using
pre-calculated elastix inverse transform parameter files

Returns

Status of inverions for masks and labels
Invert volumes such as masks and labelmaps from population average space to input volumes space using pre - calculated elastix inverse transform parameter files Returns Status of inverions for masks and labels
def invert_volumes(config: LamaConfig):
    invert_config = config['inverted_transforms'] / PROPAGATE_CONFIG
    if config['stats_mask']:
        mask_inversion_dir = config.mkdir('inverted_stats_masks')
        PropagateLabelMap(invert_config, config['stats_mask'], mask_inversion_dir, threads=config['threads']).run()
    if config['label_map']:
        labels_inverion_dir = config.mkdir('inverted_labels')
        PropagateLabelMap(invert_config, config['label_map'], labels_inverion_dir, threads=config['threads']).run()
def invert_volumes ( config : LamaConfig ) : invert_config = config [ 'inverted_transforms' ] / PROPAGATE_CONFIG if config [ 'stats_mask' ] : mask_inversion_dir = config . mkdir ( 'inverted_stats_masks' ) PropagateLabelMap ( invert_config , config [ 'stats_mask' ] , mask_inversion_dir , threads = config [ 'threads' ] ) . run ( ) if config [ 'label_map' ] : labels_inverion_dir = config . mkdir ( 'inverted_labels' ) PropagateLabelMap ( invert_config , config [ 'label_map' ] , labels_inverion_dir , threads = config [ 'threads' ] ) . run ( )
Invert volumes, such as masks and labelmaps from population average space to input volumes space using
pre-calculated elastix inverse transform parameter files
Invert volumes such as masks and labelmaps from population average space to input volumes space using pre - calculated elastix inverse transform parameter files
"""
    Invert volumes, such as masks and labelmaps from population average space to input volumes space using
    pre-calculated elastix inverse transform parameter files

    Returns
    -------
    Status of inverions for masks and labels

    """
config
LamaConfig