HPI Fit algorithms.
More...
#include <inv_hpi_fit.h>
|
| static void | storeHeadPosition (float fTime, const Eigen::MatrixXf &matTransDevHead, Eigen::MatrixXd &matPosition, const Eigen::VectorXd &vecGoF, const QVector< double > &vecError) |
| static bool | compareTransformation (const Eigen::MatrixX4f &mDevHeadT, const Eigen::MatrixX4f &mDevHeadDest, const float &fThreshRot, const float &fThreshTrans) |
HPI Fit algorithms.
HPI Fit algorithms.
Definition at line 140 of file inv_hpi_fit.h.
◆ ConstSPtr
◆ SPtr
◆ InvHpiFit() [1/2]
| INVLIB::InvHpiFit::InvHpiFit |
( |
| ) |
|
|
explicit |
◆ InvHpiFit() [2/2]
◆ checkForUpdate()
| void InvHpiFit::checkForUpdate |
( |
const InvSensorSet & | sensorSet | ) |
|
◆ compareTransformation()
| bool InvHpiFit::compareTransformation |
( |
const Eigen::MatrixX4f & | mDevHeadT, |
|
|
const Eigen::MatrixX4f & | mDevHeadDest, |
|
|
const float & | fThreshRot, |
|
|
const float & | fThreshTrans ) |
|
static |
Compares two 4x4 transformation matrices by evaluating their rotation and translation differences against given thresholds.
- Parameters
-
| [in] | mDevHeadT | The first transformation matrix. |
| [in] | mDevHeadDest | The second (destination) transformation matrix. |
| [in] | fThreshRot | The rotation threshold in degrees. |
| [in] | fThreshTrans | The translation threshold in meters. |
- Returns
- True if the movement exceeds either threshold.
Definition at line 556 of file inv_hpi_fit.cpp.
◆ fit() [1/2]
| void INVLIB::InvHpiFit::fit |
( |
const Eigen::MatrixXd & | matProjectedData, |
|
|
const Eigen::MatrixXd & | matProjectors, |
|
|
const InvHpiModelParameters & | hpiModelParameters, |
|
|
const Eigen::MatrixXd & | matCoilsHead, |
|
|
const bool | bOrderFrequencies, |
|
|
HpiFitResult & | hpiFitResult ) |
◆ fit() [2/2]
| void INVLIB::InvHpiFit::fit |
( |
const Eigen::MatrixXd & | matProjectedData, |
|
|
const Eigen::MatrixXd & | matProjectors, |
|
|
const InvHpiModelParameters & | hpiModelParameters, |
|
|
const Eigen::MatrixXd & | matCoilsHead, |
|
|
HpiFitResult & | hpiFitResult ) |
Perform one single HPI fit.
- Parameters
-
| [in] | matProjectedData | Data to estimate the HPI positions from. Projectars should be already applied. |
| [in] | matProjectors | The projectors to apply. |
| [in] | hpiModelParameters | The model parameters to use for the Hpi Fitting, especially to compute the coil amplitudes. |
| [in] | matCoilsHead | The hpi coil locations in head space. |
| [in] | bOrderFrequencies | Order Hpi coils yes/no. |
| [out] | hpiFitResult | The fitting results. |
◆ storeHeadPosition()
| void InvHpiFit::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] | fTime | The corresponding time in the measurement for the fit. |
| [in] | matTransDevHead | The device->head transformation matrix. |
| [out] | matPosition | The matrix to store the results. |
| [in] | vecGoF | The goodness of fit per coil. |
| [in] | vecError | The Hpi estimation Error per coil. |
Definition at line 529 of file inv_hpi_fit.cpp.
The documentation for this class was generated from the following files: