atlas_labels
atlas_labels(atlas)Extract unique labels from an atlas.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| atlas | BrainAtlas | Brain atlas object. | required |
Returns
| Name | Type | Description |
|---|---|---|
| list[str] | Sorted list of unique labels. |
Examples
>>> from ggsegpy import dk, atlas_labels
>>> atlas_labels(dk())[:3]
['lh_bankssts', 'lh_caudalanteriorcingulate', ...]