This documentation is for development version 0.18.dev0.

mne.scale_labels

mne.scale_labels(subject_to, pattern=None, overwrite=False, subject_from=None, scale=None, subjects_dir=None)[source]

Scale labels to match a brain that was previously created by scaling.

Parameters:
subject_to : str

Name of the scaled MRI subject (the destination brain).

pattern : str | None

Pattern for finding the labels relative to the label directory in the MRI subject directory (e.g., “lh.BA3a.label” will scale “fsaverage/label/lh.BA3a.label”; “aparc/*.label” will find all labels in the “fsaverage/label/aparc” directory). With None, scale all labels.

overwrite : bool

Overwrite any label file that already exists for subject_to (otherwise existing labels are skipped).

subject_from : None | str

Name of the original MRI subject (the brain that was scaled to create subject_to). If None, the value is read from subject_to’s cfg file.

scale : None | float | array_like, shape = (3,)

Scaling parameter. If None, the value is read from subject_to’s cfg file.

subjects_dir : None | str

Override the SUBJECTS_DIR environment variable.