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

Atlas lookup for FreeSurfer volume parcellations (e.g. aparc+aseg.mgz). 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

Atlas lookup for FreeSurfer volume parcellations (e.g. aparc+aseg.mgz).

Loads a FreeSurfer MGH/MGZ volume and provides label lookup at RAS coordinates.

Definition at line 72 of file fs_atlas_lookup.h.

Constructor & Destructor Documentation

◆ FsAtlasLookup()

FsAtlasLookup::FsAtlasLookup ( )

Constructs an empty atlas lookup.

Definition at line 70 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 322 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 289 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 311 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 78 of file fs_atlas_lookup.cpp.


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