MNE-CPP  0.1.9
A Framework for Electrophysiology
Public Types | Public Member Functions | Static Public Member Functions | List of all members
INVERSELIB::HPIFit Class Reference

HPI Fit algorithms. More...

#include <hpifit.h>

Public Types

typedef QSharedPointer< HPIFitSPtr
 
typedef QSharedPointer< const HPIFitConstSPtr
 

Public Member Functions

 HPIFit ()
 
 HPIFit (const SensorSet &sensorSet)
 
void checkForUpdate (const SensorSet &sensorSet)
 
void fit (const Eigen::MatrixXd &matProjectedData, const Eigen::MatrixXd &matProjectors, const HpiModelParameters &hpiModelParameters, const Eigen::MatrixXd &matCoilsHead, HpiFitResult &hpiFitResult)
 
void fit (const Eigen::MatrixXd &matProjectedData, const Eigen::MatrixXd &matProjectors, const HpiModelParameters &hpiModelParameters, const Eigen::MatrixXd &matCoilsHead, const bool bOrderFrequencies, HpiFitResult &hpiFitResult)
 

Static Public Member Functions

static void storeHeadPosition (float fTime, const Eigen::MatrixXf &matTransDevHead, Eigen::MatrixXd &matPosition, const Eigen::VectorXd &vecGoF, const QVector< double > &vecError)
 

Detailed Description

HPI Fit algorithms.

HPI Fit algorithms.

Definition at line 134 of file hpifit.h.

Member Typedef Documentation

◆ ConstSPtr

typedef QSharedPointer<const HPIFit> INVERSELIB::HPIFit::ConstSPtr

Const shared pointer type for HPIFit.

Definition at line 139 of file hpifit.h.

◆ SPtr

typedef QSharedPointer<HPIFit> INVERSELIB::HPIFit::SPtr

Shared pointer type for HPIFit.

Definition at line 138 of file hpifit.h.

Constructor & Destructor Documentation

◆ HPIFit() [1/2]

INVERSELIB::HPIFit::HPIFit ( )
explicit

Default constructor.

◆ HPIFit() [2/2]

HPIFit::HPIFit ( const SensorSet sensorSet)
explicit

Constructs the HPI from a SensorSet.

Parameters
[in]SensorSetThe MEG sensorSet used for the hpi fitting.

Definition at line 93 of file hpifit.cpp.

Member Function Documentation

◆ checkForUpdate()

void HPIFit::checkForUpdate ( const SensorSet sensorSet)

Checks if SensorSet has changed and updates member SensorSet.

Parameters
[in]SensorSetThe MEG sensorSet used for the hpi fitting.

Definition at line 102 of file hpifit.cpp.

◆ fit()

void INVERSELIB::HPIFit::fit ( const Eigen::MatrixXd &  matProjectedData,
const Eigen::MatrixXd &  matProjectors,
const HpiModelParameters hpiModelParameters,
const Eigen::MatrixXd &  matCoilsHead,
HpiFitResult hpiFitResult 
)

Perform one single HPI fit.

Parameters
[in]matProjectedDataData to estimate the HPI positions from. Projectars should be already applied.
[in]matProjectorsThe projectors to apply.
[in]hpiModelParametersThe model parameters to use for the Hpi Fitting, especially to compute the coil amplitudes.
[in]matCoilsHeadThe hpi coil locations in head space.
[in]bOrderFrequenciesOrder Hpi coils yes/no.
[out]hpiFitResultThe fitting results.

◆ storeHeadPosition()

void HPIFit::storeHeadPosition ( float  fTime,
const Eigen::MatrixXf &  matTransDevHead,
Eigen::MatrixXd &  matPosition,
const Eigen::VectorXd &  vecGoF,
const QVector< double > &  vecError 
)
static

Store results from dev_Head_t as quaternions in position matrix. The format is the same as you get from Neuromag's MaxFilter.

Parameters
[in]fTimeThe corresponding time in the measurement for the fit.
[in]matTransDevHeadThe device->head transformation matrix.
[out]matPositionThe matrix to store the results.
[in]vecGoFThe goodness of fit per coil.
[in]vecErrorThe Hpi estimation Error per coil.

ToDo: get estimated movement velocity and store it in channel 9

Definition at line 527 of file hpifit.cpp.


The documentation for this class was generated from the following files: