38#ifndef MNE_INVERSE_OPERATOR_H
39#define MNE_INVERSE_OPERATOR_H
120 QString t_sDistMeasure;
122 t_sDistMeasure = QString(
"cityblock");
131 t_kMeans.
calculate(this->matRoiMT, this->nClusters, p_RegionMTOut.
roiIdx, p_RegionMTOut.
ctrs, p_RegionMTOut.
sumd, p_RegionMTOut.
D);
135 return p_RegionMTOut;
148 typedef QSharedPointer<MNEInverseOperator>
SPtr;
149 typedef QSharedPointer<const MNEInverseOperator>
ConstSPtr;
183 bool limit_depth_chs =
true);
220 Eigen::SparseMatrix<double> &noise_norm,
221 QList<Eigen::VectorXi> &vertno);
245 qint32 p_iClusterSize,
246 Eigen::MatrixXd& p_D,
247 QString p_sMethod =
"cityblock")
const;
263 inline Eigen::MatrixXd
getKernel()
const;
293 bool limit_depth_chs =
true);
313 bool sLORETA =
false)
const;
338 void write(QIODevice &p_IODevice);
416 out <<
"#### MNE Inverse Operator ####\n";
418 out <<
"\n methods: " << p_MNEInverseOperator.
methods << std::endl;
419 out <<
"\n source_ori: " << p_MNEInverseOperator.
source_ori << std::endl;
420 out <<
"\n nsource: " << p_MNEInverseOperator.
nsource << std::endl;
421 out <<
"\n nchan: " << p_MNEInverseOperator.
nchan << std::endl;
422 out <<
"\n coord_frame:\n\t" << p_MNEInverseOperator.
coord_frame << std::endl;
424 out <<
"\n eigen_leads: " << *(p_MNEInverseOperator.
eigen_leads) << std::endl;
425 out <<
"\n eigen_fields:\n\t" << *(p_MNEInverseOperator.
eigen_fields) << std::endl;
431#ifndef metatype_mneinverseoperatorsptr
432#define metatype_mneinverseoperatorsptr
436#ifndef metatype_mneinverseoperators
437#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.
MNEMath class declaration.
MNESourceSpaces class declaration.
mne library export/import macros.
MNEForwardSolution class declaration, which provides the forward solution including the source space ...
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
Output of a multi-threaded inverse operator assembly step for a single cortical region.
Input parameters for multi-threaded inverse operator assembly on a single cortical region.
Eigen::MatrixXd matRoiMTOrig
RegionMTOut cluster() const
FIFFLIB::FiffCov::SDPtr fmri_prior
QSharedPointer< const MNEInverseOperator > ConstSPtr
QSharedPointer< MNEInverseOperator > SPtr
static MNEInverseOperator make_inverse_operator(const FIFFLIB::FiffInfo &info, MNEForwardSolution forward, const FIFFLIB::FiffCov &p_noise_cov, float loose=0.2f, float depth=0.8f, bool fixed=false, bool limit_depth_chs=true)
Eigen::MatrixXd cluster_kernel(const FSLIB::AnnotationSet &p_AnnotationSet, qint32 p_iClusterSize, Eigen::MatrixXd &p_D, QString p_sMethod="cityblock") const
FIFFLIB::fiff_int_t coord_frame
QList< FIFFLIB::FiffProj > projs
Eigen::SparseMatrix< double > noisenorm
FIFFLIB::FiffCov::SDPtr orient_prior
FIFFLIB::fiff_int_t nchan
bool assemble_kernel(const FSLIB::Label &label, QString method, bool pick_normal, Eigen::MatrixXd &K, Eigen::SparseMatrix< double > &noise_norm, QList< Eigen::VectorXi > &vertno)
bool eigen_leads_weighted
FIFFLIB::fiff_int_t methods
FIFFLIB::FiffNamedMatrix::SDPtr eigen_leads
bool check_ch_names(const FIFFLIB::FiffInfo &info) const
FIFFLIB::FiffCoordTrans mri_head_t
FIFFLIB::fiff_int_t nsource
MNEInverseOperator prepare_inverse_operator(qint32 nave, float lambda2, bool dSPM, bool sLORETA=false) const
friend std::ostream & operator<<(std::ostream &out, const MNELIB::MNEInverseOperator &p_MNEInverseOperator)
Eigen::MatrixXf source_nn
FIFFLIB::FiffCov::SDPtr depth_prior
void write(QIODevice &p_IODevice)
Eigen::MatrixXd & getKernel()
FIFFLIB::fiff_int_t source_ori
void writeToStream(FIFFLIB::FiffStream *p_pStream)
FIFFLIB::FiffInfoBase info
FIFFLIB::FiffCov::SDPtr noise_cov
FIFFLIB::FiffCov::SDPtr source_cov
static bool read_inverse_operator(QIODevice &p_IODevice, MNEInverseOperator &inv)
bool isFixedOrient() const
FIFFLIB::FiffNamedMatrix::SDPtr eigen_fields
Source Space descritpion.
bool calculate(Eigen::MatrixXd X, qint32 kClusters, Eigen::VectorXi &idx, Eigen::MatrixXd &C, Eigen::VectorXd &sumD, Eigen::MatrixXd &D)
Q_DECLARE_METATYPE(QSharedPointer< MNELIB::MNEInverseOperator >)