mne.scale_mri¶
- mne.scale_mri(subject_from, subject_to, scale, overwrite=False, subjects_dir=None, skip_fiducials=False, labels=True, annot=False, verbose=None)[source]¶
Create a scaled copy of an MRI subject.
- Parameters
- subject_from
str Name of the subject providing the MRI.
- subject_to
str New subject name for which to save the scaled MRI.
- scale
float| array_like, shape = (3,) The scaling factor (one or 3 parameters).
- overwritebool
If an MRI already exists for subject_to, overwrite it.
- subjects_dir
None|str Override the SUBJECTS_DIR environment variable.
- skip_fiducialsbool
Do not scale the MRI fiducials. If False (default), an IOError will be raised if no fiducials file can be found.
- labelsbool
Also scale all labels (default True).
- annotbool
Copy
*.annotfiles to the new location (default False).- verbosebool |
str|int|None Control verbosity of the logging output. If
None, use the default verbosity level. See the logging documentation andmne.verbose()for details. Should only be passed as a keyword argument.
- subject_from
See also
scale_bemAdd a scaled BEM to a scaled MRI.
scale_labelsAdd labels to a scaled MRI.
scale_source_spaceAdd a source space to a scaled MRI.
Notes
This function will automatically call
scale_bem(),scale_labels(), andscale_source_space()based on expected filename patterns in the subject directory.