v2.0.0
Loading...
Searching...
No Matches
FSLIB::FsColortable Class Reference

FreeSurfer colour lookup table: region name + RGBA + packed label, indexed by entry. More...

#include <fs_colortable.h>

Public Types

typedef QSharedPointer< FsColortableSPtr
typedef QSharedPointer< const FsColortableConstSPtr

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

Detailed Description

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.

Member Typedef Documentation

◆ ConstSPtr

typedef QSharedPointer<const FsColortable> FSLIB::FsColortable::ConstSPtr

Const shared pointer type for FsColortable.

Definition at line 75 of file fs_colortable.h.

◆ SPtr

typedef QSharedPointer<FsColortable> FSLIB::FsColortable::SPtr

Shared pointer type for FsColortable.

Definition at line 74 of file fs_colortable.h.

Constructor & Destructor Documentation

◆ FsColortable()

FsColortable::FsColortable ( )
explicit

Default constructor.

Definition at line 30 of file fs_colortable.cpp.

Member Function Documentation

◆ clear()

void FsColortable::clear ( )

Initializes colortable.

Definition at line 38 of file fs_colortable.cpp.

◆ getLabelIds()

Eigen::VectorXi FSLIB::FsColortable::getLabelIds ( ) const
inline

Ids encoded in the colortable

Returns
ids.

Definition at line 124 of file fs_colortable.h.

◆ getNames()

QStringList FSLIB::FsColortable::getNames ( ) const
inline

Names encoded in the colortable

Returns
ids.

Definition at line 135 of file fs_colortable.h.

◆ getRGBAs()

Eigen::MatrixX4i FSLIB::FsColortable::getRGBAs ( ) const
inline

RGBAs encoded in the colortable

Returns
RGBAs.

Definition at line 142 of file fs_colortable.h.

Member Data Documentation

◆ numEntries

qint32 FSLIB::FsColortable::numEntries

Number of entries.

Definition at line 115 of file fs_colortable.h.

◆ orig_tab

QString FSLIB::FsColortable::orig_tab

FsColortable raw data.

Definition at line 114 of file fs_colortable.h.

◆ struct_names

QStringList FSLIB::FsColortable::struct_names

Anatomical ROI description.

Definition at line 116 of file fs_colortable.h.

◆ table

Eigen::MatrixXi FSLIB::FsColortable::table

labels and corresponing colorcode.

Definition at line 117 of file fs_colortable.h.


The documentation for this class was generated from the following files: