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

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.

Detailed Description

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 intQString hash lookup.

Definition at line 68 of file fs_atlas_lookup.h.

Constructor & Destructor Documentation

◆ FsAtlasLookup()

FsAtlasLookup::FsAtlasLookup ( )

Constructs an empty atlas lookup.

Definition at line 48 of file fs_atlas_lookup.cpp.

Member Function Documentation

◆ isLoaded()

bool FsAtlasLookup::isLoaded ( ) const

Check whether a parcellation volume has been loaded.

Returns
true if loaded.

Definition at line 300 of file fs_atlas_lookup.cpp.

◆ labelAtRas()

QString FsAtlasLookup::labelAtRas ( const Eigen::Vector3f & ras) const

Look up the anatomical label at a RAS coordinate.

Parameters
[in]ras3D position in RAS space (in mm).
Returns
Label string, or "Unknown" if out of bounds or unlabeled.

Definition at line 267 of file fs_atlas_lookup.cpp.

◆ labelsForPositions()

QStringList FsAtlasLookup::labelsForPositions ( const QVector< Eigen::Vector3f > & positions) const

Look up labels for multiple RAS positions.

Parameters
[in]positionsList of 3D RAS positions.
Returns
List of label strings (one per position).

Definition at line 289 of file fs_atlas_lookup.cpp.

◆ load()

bool FsAtlasLookup::load ( const QString & sParcellationPath)

Load a FreeSurfer MGH/MGZ volume parcellation.

Parameters
[in]sParcellationPathPath to the volume file (e.g. aparc+aseg.mgz).
Returns
true if loaded successfully.

Definition at line 56 of file fs_atlas_lookup.cpp.


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