37#ifndef DIPOLEFITDATA_H
38#define DIPOLEFITDATA_H
63#include <QSharedPointer>
70#define COLUMN_NORM_NONE 0
71#define COLUMN_NORM_COMP 1
72#define COLUMN_NORM_LOC 2
125 typedef QSharedPointer<DipoleFitData>
SPtr;
153 const QList<FIFFLIB::FiffChInfo>&
chs,
164 const QString& measname,
169 const QString& badname,
170 const QString& noisename,
178 const QList<QString>& projnames,
210 QList<FIFFLIB::FiffChInfo>
chs;
214 std::unique_ptr<FIFFLIB::FiffSparseMatrix>
pick;
230 std::unique_ptr<MNELIB::MNECovMatrix>
noise;
232 std::unique_ptr<MNELIB::MNEProjOp>
proj;
Old fiff_type declarations - replace them.
int(* fwdFieldFunc)(float *rd, float *Q, FWDLIB::FwdCoilSet *coils, float *res, void *client)
int(* fwdVecFieldFunc)(float *rd, FWDLIB::FwdCoilSet *coils, float **res, void *client)
FwdEegSphereModel class declaration.
FwdBemModel class declaration.
DipoleForward class declaration.
inverse library export/import macros.
#define INVERSESHARED_EXPORT
void(* mneUserFreeFunc)(void *)
Generic destructor callback for user-attached data.
FIFF file I/O and data structures (raw, epochs, evoked, covariance, forward).
Inverse source estimation (MNE, dSPM, sLORETA, dipole fitting).
struct INVERSELIB::dipoleFitFuncs dipoleFitFuncsRec
Coordinate transformation description.
Collection of FwdCoil objects representing a full MEG or EEG sensor array.
Multi-layer spherical head model for EEG forward computation.
Combined MEG/EEG measurement data with inverse operator, field mapping, dipole fitting,...
Forward field computation function pointers and client data for MEG and EEG dipole fitting.
MNELIB::mneUserFreeFunc eeg_client_free
fwdVecFieldFunc eeg_vec_pot
MNELIB::mneUserFreeFunc meg_client_free
fwdVecFieldFunc meg_vec_field
Workspace for the dipole fitting objective function, holding forward model, measured field,...
static int scale_dipole_fit_noise_cov(DipoleFitData *f, int nave)
static int compute_dipole_field(DipoleFitData *d, float *rd, int whiten, float **fwd)
std::unique_ptr< FIFFLIB::FiffCoordTrans > meg_head_t
static DipoleFitData * setup_dipole_fit_data(const QString &mriname, const QString &measname, const QString &bemname, Eigen::Vector3f *r0, FWDLIB::FwdEegSphereModel *eeg_model, int accurate_coils, const QString &badname, const QString &noisename, float grad_std, float mag_std, float eeg_std, float mag_reg, float grad_reg, float eeg_reg, int diagnoise, const QList< QString > &projnames, int include_meg, int include_eeg)
static int select_dipole_fit_noise_cov(DipoleFitData *f, mshMegEegData d)
static std::unique_ptr< MNELIB::MNECovMatrix > ad_hoc_noise(FWDLIB::FwdCoilSet *meg, FWDLIB::FwdCoilSet *eeg, float grad_std, float mag_std, float eeg_std)
std::unique_ptr< MNELIB::MNECovMatrix > noise_orig
std::unique_ptr< FWDLIB::FwdBemModel > bem_model
static int make_projection(const QList< QString > &projnames, const QList< FIFFLIB::FiffChInfo > &chs, int nch, MNELIB::MNEProjOp **res)
dipoleFitFuncs mag_dipole_funcs
std::unique_ptr< FIFFLIB::FiffSparseMatrix > pick
std::unique_ptr< MNELIB::MNECovMatrix > noise
QSharedPointer< DipoleFitData > SPtr
static int setup_forward_model(DipoleFitData *d, MNELIB::MNECTFCompDataSet *comp_data, FWDLIB::FwdCoilSet *comp_coils)
static bool fit_one(DipoleFitData *fit, GuessData *guess, float time, float *B, int verbose, ECD &res)
std::unique_ptr< FWDLIB::FwdCoilSet > meg_coils
QList< FIFFLIB::FiffChInfo > chs
dipoleFitFuncs sphere_funcs
QSharedPointer< const DipoleFitData > ConstSPtr
static int scale_noise_cov(DipoleFitData *f, int nave)
std::unique_ptr< FWDLIB::FwdEegSphereModel > eeg_model
std::unique_ptr< FIFFLIB::FiffCoordTrans > mri_head_t
static DipoleForward * dipole_forward_one(DipoleFitData *d, float *rd, DipoleForward *old)
std::unique_ptr< FWDLIB::FwdCoilSet > eeg_els
std::unique_ptr< MNELIB::MNEProjOp > proj
Stores forward field matrices and source space data for magnetic dipole fitting.
Single equivalent current dipole with position, orientation, amplitude, and goodness-of-fit.
Precomputed guess point grid with forward fields for initial dipole position candidates.
Collection of CTF third-order gradient compensation operators.
Projection operator managing a set of linear projection items and the final compiled projector matrix...