FreeSurfer colour lookup table: region name + RGBA + packed label, indexed by entry. More...
#include <fs_colortable.h>
Public Types | |
| typedef QSharedPointer< FsColortable > | SPtr |
| typedef QSharedPointer< const FsColortable > | ConstSPtr |
Public Member Functions | |
| FsColortable () | |
| void | clear () |
| Eigen::VectorXi | getLabelIds () const |
| QStringList | getNames () const |
| Eigen::MatrixX4i | getRGBAs () const |
Public Attributes | |
| QString | orig_tab |
| qint32 | numEntries |
| QStringList | struct_names |
| Eigen::MatrixXi | table |
FreeSurfer colour lookup table: region name + RGBA + packed label, indexed by entry.
Backs the colour/structure mapping used by FsAnnotation and by any caller that needs to translate a packed .annot label into the matching anatomical name and RGBA colour. The container is a thin value object: rows of table align with struct_names, and the label column matches the per-vertex integer stored in .annot files so direct equality lookup is sufficient.
Definition at line 71 of file fs_colortable.h.
| typedef QSharedPointer<const FsColortable> FSLIB::FsColortable::ConstSPtr |
Const shared pointer type for FsColortable.
Definition at line 75 of file fs_colortable.h.
| typedef QSharedPointer<FsColortable> FSLIB::FsColortable::SPtr |
Shared pointer type for FsColortable.
Definition at line 74 of file fs_colortable.h.
|
explicit |
Default constructor.
Definition at line 30 of file fs_colortable.cpp.
| void FsColortable::clear | ( | ) |
Initializes colortable.
Definition at line 38 of file fs_colortable.cpp.
|
inline |
|
inline |
|
inline |
| qint32 FSLIB::FsColortable::numEntries |
Number of entries.
Definition at line 115 of file fs_colortable.h.
| QString FSLIB::FsColortable::orig_tab |
FsColortable raw data.
Definition at line 114 of file fs_colortable.h.
| QStringList FSLIB::FsColortable::struct_names |
Anatomical ROI description.
Definition at line 116 of file fs_colortable.h.
| Eigen::MatrixXi FSLIB::FsColortable::table |
labels and corresponing colorcode.
Definition at line 117 of file fs_colortable.h.