28#ifndef FS_ATLAS_LOOKUP_H
29#define FS_ATLAS_LOOKUP_H
83 bool load(
const QString& sParcellationPath);
91 QString
labelAtRas(
const Eigen::Vector3f& ras)
const;
109 QVector<int> m_voxelData;
114 Eigen::Matrix4f m_ras2vox;
116 QMap<int, QString> m_lookupTable;
118 bool m_loaded =
false;
124 void initLookupTable();
132 Eigen::Vector3i rasToVoxel(
const Eigen::Vector3f& ras)
const;
Export/import macros and build-info accessors for the FSLIB FreeSurfer I/O library.
FreeSurfer surface, annotation and parcellation I/O for mne-cpp.
QString labelAtRas(const Eigen::Vector3f &ras) const
Look up the anatomical label at a RAS coordinate.
bool isLoaded() const
Check whether a parcellation volume has been loaded.
bool load(const QString &sParcellationPath)
Load a FreeSurfer MGH/MGZ volume parcellation.
QStringList labelsForPositions(const QVector< Eigen::Vector3f > &positions) const
Look up labels for multiple RAS positions.