36 #ifndef MNE_INVERSE_OPERATOR_H
37 #define MNE_INVERSE_OPERATOR_H
44 #include "mne_global.h"
103 using namespace FSLIB;
105 using namespace Eigen;
140 QString t_sDistMeasure;
141 if(sDistMeasure.isEmpty())
142 t_sDistMeasure = QString(
"cityblock");
144 t_sDistMeasure = sDistMeasure;
149 KMeans t_kMeans(t_sDistMeasure, QString(
"sample"), 5);
151 t_kMeans.
calculate(this->matRoiMT, this->nClusters, p_RegionMTOut.
roiIdx, p_RegionMTOut.
ctrs, p_RegionMTOut.
sumd, p_RegionMTOut.
D);
155 return p_RegionMTOut;
169 typedef QSharedPointer<MNEInverseOperator>
SPtr;
170 typedef QSharedPointer<const MNEInverseOperator>
ConstSPtr;
231 bool assemble_kernel(
const Label &label, QString method,
bool pick_normal, MatrixXd &K, SparseMatrix<double> &noise_norm, QList<VectorXi> &vertno);
241 bool check_ch_names(
const FiffInfo &info)
const;
254 MatrixXd cluster_kernel(
const AnnotationSet &p_AnnotationSet, qint32 p_iClusterSize, MatrixXd& p_D, QString p_sMethod =
"cityblock")
const;
262 inline MatrixXd& getKernel();
270 inline MatrixXd getKernel()
const;
278 inline bool isFixedOrient()
const;
311 MNEInverseOperator prepare_inverse_operator(qint32 nave ,
float lambda2,
bool dSPM,
bool sLORETA =
false)
const;
336 void write(QIODevice &p_IODevice);
410 return this->source_ori == FIFFV_MNE_FIXED_ORI;
418 out <<
"#### MNE Inverse Operator ####\n";
420 out <<
"\n methods: " << p_MNEInverseOperator.
methods << std::endl;
421 out <<
"\n source_ori: " << p_MNEInverseOperator.
source_ori << std::endl;
422 out <<
"\n nsource: " << p_MNEInverseOperator.
nsource << std::endl;
423 out <<
"\n nchan: " << p_MNEInverseOperator.
nchan << std::endl;
424 out <<
"\n coord_frame:\n\t" << p_MNEInverseOperator.
coord_frame << std::endl;
426 out <<
"\n eigen_leads: " << p_MNEInverseOperator.
eigen_leads << std::endl;
427 out <<
"\n eigen_fields:\n\t" << p_MNEInverseOperator.
eigen_fields << std::endl;
434 #endif // MNE_INVERSE_OPERATOR_H
QSharedDataPointer< FiffCov > SDPtr
bool eigen_leads_weighted
FIFF measurement file information.
bool calculate(MatrixXd X, qint32 kClusters, VectorXi &idx, MatrixXd &C, VectorXd &sumD, MatrixXd &D)
bool isFixedOrient() const
FiffNamedMatrix::SDPtr eigen_fields
Source Space descritpion.
FiffProj class declaration.
Old fiff_type declarations - replace them.
QSharedDataPointer< FiffNamedMatrix > SDPtr
FiffNamedMatrix class declaration.
FiffCov::SDPtr depth_prior
FiffCov::SDPtr source_cov
SparseMatrix< double > noisenorm
FiffNamedMatrix::SDPtr eigen_leads
FiffInfo class declaration.
MNEForwardSolution class declaration, which provides the forward solution including the source space ...
FiffCoordTrans mri_head_t
Coordinate transformation description.
MNESourceSpace class declaration.
MNEMath class declaration.
FiffCov::SDPtr orient_prior
QSharedPointer< const MNEInverseOperator > ConstSPtr
QSharedPointer< MNEInverseOperator > SPtr
FiffCov class declaration.
FiffCov::SDPtr fmri_prior