morph_labels(labels, subject_to, subject_from=None, subjects_dir=None, surf_name='white', verbose=None)¶
Morph a set of labels.
This is useful when morphing a set of non-overlapping labels (such as those obtained with
read_labels_from_annot()) from one subject to another.
The labels to morph.
The subject to morph labels to.
The subject to morph labels from. Can be None if the labels have the
The path to the freesurfer subjects reconstructions. It corresponds to Freesurfer environment variable SUBJECTS_DIR.
Surface used to obtain vertex locations, e.g., ‘white’, ‘pial’.
The morphed labels.
This does not use the same algorithm as Freesurfer, so the results morphing (e.g., from
'fsaverage'to your subject) might not match what Freesurfer produces during
New in version 0.18.