38#ifndef MNE_INVERSE_OPERATOR_H
39#define MNE_INVERSE_OPERATOR_H
116 ? QStringLiteral(
"cityblock")
140 typedef QSharedPointer<MNEInverseOperator>
SPtr;
141 typedef QSharedPointer<const MNEInverseOperator>
ConstSPtr;
175 bool limit_depth_chs =
true);
209 const QString &method,
212 Eigen::SparseMatrix<double> &noise_norm,
213 QList<Eigen::VectorXi> &vertno);
242 const QString &method = QStringLiteral(
"cityblock"))
const;
256 inline Eigen::MatrixXd
getKernel()
const;
288 bool limit_depth_chs =
true);
308 bool sLORETA =
false)
const;
327 void write(QIODevice &p_IODevice);
405 out <<
"#### MNE Inverse Operator ####\n"
406 <<
" methods: " << inv.
methods <<
'\n'
408 <<
" nsource: " << inv.
nsource <<
'\n'
409 <<
" nchan: " << inv.
nchan <<
'\n'
417#ifndef metatype_mneinverseoperatorsptr
418#define metatype_mneinverseoperatorsptr
422#ifndef metatype_mneinverseoperators
423#define metatype_mneinverseoperators
FiffInfo class declaration.
#define FIFFV_MNE_FIXED_ORI
FiffNamedMatrix class declaration.
FiffProj class declaration.
FiffCov class declaration.
Old fiff_type declarations - replace them.
MNESourceSpaces class declaration.
Q_DECLARE_METATYPE(QSharedPointer< MNELIB::MNEInverseOperator >)
mne library export/import macros.
MNEForwardSolution class declaration.
Core MNE data structures (source spaces, source estimates, hemispheres).
std::ostream & operator<<(std::ostream &out, const MNELIB::MNEForwardSolution &p_MNEForwardSolution)
FreeSurfer surface and annotation I/O.
Coordinate transformation description.
QSharedDataPointer< FiffCov > SDPtr
FIFF measurement file information.
QSharedDataPointer< FiffNamedMatrix > SDPtr
bool calculate(const Eigen::MatrixXd &X, qint32 kClusters, Eigen::VectorXi &idx, Eigen::MatrixXd &C, Eigen::VectorXd &sumD, Eigen::MatrixXd &D)
Output of a multi-threaded KMeans clustering step for a single cortical region.
Input parameters for multi-threaded KMeans clustering on a single cortical region.
Eigen::MatrixXd matRoiMTOrig
RegionMTOut cluster() const
Run KMeans clustering on this region.
MNE-style inverse operator.
MNEInverseOperator()
Constructs an empty inverse operator with invalid sentinel values.
FIFFLIB::FiffCov::SDPtr fmri_prior
QSharedPointer< const MNEInverseOperator > ConstSPtr
QSharedPointer< MNEInverseOperator > SPtr
Eigen::MatrixXd cluster_kernel(const FSLIB::FsAnnotationSet &annotationSet, qint32 clusterSize, Eigen::MatrixXd &D, const QString &method=QStringLiteral("cityblock")) const
Cluster the inverse kernel by cortical parcellation.
FIFFLIB::fiff_int_t coord_frame
QList< FIFFLIB::FiffProj > projs
Eigen::SparseMatrix< double > noisenorm
FIFFLIB::FiffCov::SDPtr orient_prior
static MNEInverseOperator make_inverse_operator(const FIFFLIB::FiffInfo &info, MNEForwardSolution forward, const FIFFLIB::FiffCov &noiseCov, float loose=0.2f, float depth=0.8f, bool fixed=false, bool limit_depth_chs=true)
Assemble an inverse operator from a forward solution and noise covariance.
FIFFLIB::fiff_int_t nchan
friend std::ostream & operator<<(std::ostream &out, const MNEInverseOperator &inv)
Stream-output operator for diagnostic printing.
bool eigen_leads_weighted
FIFFLIB::fiff_int_t methods
FIFFLIB::FiffNamedMatrix::SDPtr eigen_leads
bool check_ch_names(const FIFFLIB::FiffInfo &info) const
Verify that inverse-operator channels are present in the measurement info.
FIFFLIB::FiffCoordTrans mri_head_t
FIFFLIB::fiff_int_t nsource
MNEInverseOperator prepare_inverse_operator(qint32 nave, float lambda2, bool dSPM, bool sLORETA=false) const
Prepare the inverse operator for source estimation.
Eigen::MatrixXf source_nn
FIFFLIB::FiffCov::SDPtr depth_prior
void write(QIODevice &p_IODevice)
Write the inverse operator to a FIFF file.
Eigen::MatrixXd & getKernel()
Access the most recently assembled kernel (mutable).
FIFFLIB::fiff_int_t source_ori
bool assemble_kernel(const FSLIB::FsLabel &label, const QString &method, bool pick_normal, Eigen::MatrixXd &K, Eigen::SparseMatrix< double > &noise_norm, QList< Eigen::VectorXi > &vertno)
Assemble the inverse kernel matrix.
void writeToStream(FIFFLIB::FiffStream *p_pStream)
Write the inverse operator into an already-open FIFF stream.
FIFFLIB::FiffInfoBase info
~MNEInverseOperator()
Destructor.
FIFFLIB::FiffCov::SDPtr noise_cov
FIFFLIB::FiffCov::SDPtr source_cov
static bool read_inverse_operator(QIODevice &p_IODevice, MNEInverseOperator &inv)
Read an inverse operator from a FIFF file.
bool isFixedOrient() const
Check whether the inverse operator uses fixed source orientations.
FIFFLIB::FiffNamedMatrix::SDPtr eigen_fields
Source Space descritpion.