RAS-point → anatomical-region resolver backed by a FreeSurfer volumetric parcellation. More...
#include <fs_atlas_lookup.h>
Public Member Functions | |
| FsAtlasLookup () | |
| bool | load (const QString &sParcellationPath) |
| Load a FreeSurfer MGH/MGZ volume parcellation. | |
| QString | labelAtRas (const Eigen::Vector3f &ras) const |
| Look up the anatomical label at a RAS coordinate. | |
| QStringList | labelsForPositions (const QVector< Eigen::Vector3f > &positions) const |
| Look up labels for multiple RAS positions. | |
| bool | isLoaded () const |
| Check whether a parcellation volume has been loaded. | |
RAS-point → anatomical-region resolver backed by a FreeSurfer volumetric parcellation.
Owns the parcellation voxel grid, its inverse RAS-to-voxel affine, and a label-id → region-name map seeded from FreeSurferColorLUT. Designed for cheap per-point queries: a labelAtRas() call is an affine transform, three bound checks and an int → QString hash lookup.
Definition at line 68 of file fs_atlas_lookup.h.
| FsAtlasLookup::FsAtlasLookup | ( | ) |
Constructs an empty atlas lookup.
Definition at line 48 of file fs_atlas_lookup.cpp.
| bool FsAtlasLookup::isLoaded | ( | ) | const |
Check whether a parcellation volume has been loaded.
Definition at line 300 of file fs_atlas_lookup.cpp.
| QString FsAtlasLookup::labelAtRas | ( | const Eigen::Vector3f & | ras | ) | const |
Look up the anatomical label at a RAS coordinate.
| [in] | ras | 3D position in RAS space (in mm). |
Definition at line 267 of file fs_atlas_lookup.cpp.
| QStringList FsAtlasLookup::labelsForPositions | ( | const QVector< Eigen::Vector3f > & | positions | ) | const |
Look up labels for multiple RAS positions.
| [in] | positions | List of 3D RAS positions. |
Definition at line 289 of file fs_atlas_lookup.cpp.
| bool FsAtlasLookup::load | ( | const QString & | sParcellationPath | ) |
Load a FreeSurfer MGH/MGZ volume parcellation.
| [in] | sParcellationPath | Path to the volume file (e.g. aparc+aseg.mgz). |
Definition at line 56 of file fs_atlas_lookup.cpp.