This documentation is for development version 0.18.dev0.

mne.get_volume_labels_from_aseg

mne.get_volume_labels_from_aseg(mgz_fname, return_colors=False)[source]

Return a list of names and colors of segmented volumes.

Parameters:
mgz_fname : str

Filename to read. Typically aseg.mgz or some variant in the freesurfer pipeline.

return_colors : bool

If True returns also the labels colors

Returns:
label_names : list of str

The names of segmented volumes included in this mgz file.

label_colors : list of str

The RGB colors of the labels included in this mgz file.

Notes

New in version 0.9.0.