mne.read_morph_map#

mne.read_morph_map(subject_from, subject_to, subjects_dir=None, xhemi=False, verbose=None)[source]#

Read morph map.

Morph maps can be generated with mne_make_morph_maps. If one isn’t available, it will be generated automatically and saved to the subjects_dir/morph_maps directory.

Parameters
subject_fromstr

Name of the original subject as named in the SUBJECTS_DIR.

subject_tostr

Name of the subject on which to morph as named in the SUBJECTS_DIR.

subjects_dirstr

Path to SUBJECTS_DIR is not set in the environment.

xhemibool

Morph across hemisphere. Currently only implemented for subject_to == subject_from. See notes of mne.compute_source_morph().

verbosebool | str | int | None

Control verbosity of the logging output. If None, use the default verbosity level. See the logging documentation and mne.verbose() for details. Should only be passed as a keyword argument.

Returns
left_map, right_mapcsr_matrix

The morph maps for the 2 hemispheres.