|
libfs
Header-only C++11 library for accessing FreeSurfer neuroimaging data
|
The colortable from an Annot file, can be used for parcellations and integer labels. Typically each index (in all fields) describes a brain region. More...
#include <libfs.h>

Public Member Functions | |
| size_t | num_entries () const |
| Get the number of enties (regions) in this Colortable. | |
| int32_t | get_region_idx (const std::string &query_name) const |
| Get the index of a region in the Colortable by region name. Returns a negative value if the region is not found. | |
| int32_t | get_region_idx (int32_t query_label) const |
| Get the index of a region in the Colortable by label. Returns a negative value if the region is not found. | |
Public Attributes | |
| std::vector< int32_t > | id |
| internal region index | |
| std::vector< std::string > | name |
| region name | |
| std::vector< int32_t > | r |
| red channel of RGBA color | |
| std::vector< int32_t > | g |
| blue channel of RGBA color | |
| std::vector< int32_t > | b |
| green channel of RGBA color | |
| std::vector< int32_t > | a |
| alpha channel of RGBA color | |
| std::vector< int32_t > | label |
| label integer computed from rgba values. Maps to the Annot.vertex_label field. | |
The colortable from an Annot file, can be used for parcellations and integer labels. Typically each index (in all fields) describes a brain region.
1.8.13