42#include <Eigen/SparseCore>
49#include <QSharedPointer>
76 typedef QSharedPointer<MNEMorphMap>
SPtr;
77 typedef QSharedPointer<const MNEMorphMap>
ConstSPtr;
107 static MNEMorphMap compute(
const Eigen::MatrixX3f& fromRr,
const Eigen::MatrixX3i& fromTris,
const Eigen::MatrixX3f& toRr);
120 static std::optional<MNEMorphMap>
read(
const QString& path,
const QString& fromSubj,
const QString& toSubj,
int hemi);
131 static bool write(
const QString& path,
const QList<const MNEMorphMap*>& maps);
139 Eigen::SparseMatrix<double>
toEigen()
const;
142 std::unique_ptr<FIFFLIB::FiffSparseMatrix>
map;
FIFF sparse matrix: column / row-compressed sparse storage backed by Eigen::SparseMatrix.
MNELIB shared-library export/import macros and library build metadata.
Core MNE data structures (source spaces, source estimates, hemispheres).
QSharedPointer< MNEMorphMap > SPtr
static bool write(const QString &path, const QList< const MNEMorphMap * > &maps)
MNEMorphMap(MNEMorphMap &&)=default
static std::optional< MNEMorphMap > read(const QString &path, const QString &fromSubj, const QString &toSubj, int hemi)
std::unique_ptr< FIFFLIB::FiffSparseMatrix > map
MNEMorphMap & operator=(MNEMorphMap &&)=default
Eigen::SparseMatrix< double > toEigen() const
static MNEMorphMap compute(const Eigen::MatrixX3f &fromRr, const Eigen::MatrixX3i &fromTris, const Eigen::MatrixX3f &toRr)
QSharedPointer< const MNEMorphMap > ConstSPtr