mne.get_volume_labels_from_aseg#
- mne.get_volume_labels_from_aseg(mgz_fname, return_colors=False, atlas_ids=None)[source]#
Return a list of names and colors of segmented volumes.
- Parameters:
- mgz_fnamepath-like
Filename to read. Typically
aseg.mgz
or some variant in the freesurfer pipeline.- return_colorsbool
If True returns also the labels colors.
- atlas_ids
dict
|None
A lookup table providing a mapping from region names (str) to ID values (int). Can be None to use the standard Freesurfer LUT.
New in v0.21.0.
- Returns:
See also
Notes
Changed in version 0.21.0: The label names are now sorted in the same order as their corresponding values in the MRI file.
New in v0.9.0.
Examples using mne.get_volume_labels_from_aseg
#
Visualize source time courses (stcs)
Visualize source time courses (stcs)