Maxwell movement compensation using SSS. More...
#include <maxwell_movement_comp.h>
Static Public Member Functions | |
| static Eigen::MatrixXd | apply (const Eigen::MatrixXd &matData, const FIFFLIB::FiffInfo &fiffInfo, const QList< HeadPosEntry > &headPos, double dSFreq, const MaxwellMoveCompParams ¶ms=MaxwellMoveCompParams()) |
| Apply movement compensation via SSS. | |
| static QList< HeadPosEntry > | readHeadPos (const QString &sPath) |
| Read head positions from a file. | |
| static bool | writeHeadPos (const QString &sPath, const QList< HeadPosEntry > &headPos) |
| Write head positions to a file. | |
Maxwell movement compensation using SSS.
Usage:
Definition at line 89 of file maxwell_movement_comp.h.
|
static |
Apply movement compensation via SSS.
For each time segment (defined by headPos entries), the data is:
| [in] | matData | Full sensor data (n_channels × n_samples). |
| [in] | fiffInfo | Measurement info (channel positions, etc.). |
| [in] | headPos | Head positions over time (from cHPI). |
| [in] | dSFreq | Sampling frequency (Hz). |
| [in] | params | Compensation parameters. |
Definition at line 87 of file maxwell_movement_comp.cpp.
|
static |
Read head positions from a file.
File format: whitespace-separated columns per line: time q1 q2 q3 tx ty tz gof
| [in] | sPath | Path to head position file. |
Definition at line 176 of file maxwell_movement_comp.cpp.
|
static |
Write head positions to a file.
| [in] | sPath | Output file path. |
| [in] | headPos | Head positions to write. |
Definition at line 226 of file maxwell_movement_comp.cpp.