28#ifndef FS_ATLAS_LOOKUP_H
29#define FS_ATLAS_LOOKUP_H
85 bool load(
const QString& sParcellationPath);
93 QString
labelAtRas(
const Eigen::Vector3f& ras)
const;
111 QVector<int> m_voxelData;
116 Eigen::Matrix4f m_ras2vox;
118 QMap<int, QString> m_lookupTable;
120 bool m_loaded =
false;
126 void initLookupTable();
134 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.