38#ifndef MNE_INVERSE_OPERATOR_H
39#define MNE_INVERSE_OPERATOR_H
116 QString t_sDistMeasure;
118 t_sDistMeasure = QString(
"cityblock");
127 t_kMeans.
calculate(this->matRoiMT, this->nClusters, p_RegionMTOut.
roiIdx, p_RegionMTOut.
ctrs, p_RegionMTOut.
sumd, p_RegionMTOut.
D);
131 return p_RegionMTOut;
144 typedef QSharedPointer<MNEInverseOperator>
SPtr;
145 typedef QSharedPointer<const MNEInverseOperator>
ConstSPtr;
179 bool limit_depth_chs =
true);
216 Eigen::SparseMatrix<double> &noise_norm,
217 QList<Eigen::VectorXi> &vertno);
241 qint32 p_iClusterSize,
242 Eigen::MatrixXd& p_D,
243 QString p_sMethod =
"cityblock")
const;
259 inline Eigen::MatrixXd
getKernel()
const;
289 bool limit_depth_chs =
true);
309 bool sLORETA =
false)
const;
334 void write(QIODevice &p_IODevice);
412 out <<
"#### MNE Inverse Operator ####\n";
414 out <<
"\n methods: " << p_MNEInverseOperator.
methods << std::endl;
415 out <<
"\n source_ori: " << p_MNEInverseOperator.
source_ori << std::endl;
416 out <<
"\n nsource: " << p_MNEInverseOperator.
nsource << std::endl;
417 out <<
"\n nchan: " << p_MNEInverseOperator.
nchan << std::endl;
418 out <<
"\n coord_frame:\n\t" << p_MNEInverseOperator.
coord_frame << std::endl;
420 out <<
"\n eigen_leads: " << *(p_MNEInverseOperator.
eigen_leads) << std::endl;
421 out <<
"\n eigen_fields:\n\t" << *(p_MNEInverseOperator.
eigen_fields) << std::endl;
427#ifndef metatype_mneinverseoperatorsptr
428#define metatype_mneinverseoperatorsptr
432#ifndef metatype_mneinverseoperators
433#define metatype_mneinverseoperators
FiffProj class declaration.
FiffInfo class declaration.
Definitions for describing the objects in a FIFF file.
FiffCov class declaration.
#define FIFFV_MNE_FIXED_ORI
FiffNamedMatrix class declaration.
mne library export/import macros.
MNESourceSpace class declaration.
MNEForwardSolution class declaration, which provides the forward solution including the source space ...
MNEMath 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
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 >)