Skip to main content

HeadPosEntry

Namespace: RTPROCESSINGLIB  ·  Library: DSP Library

#include <dsp/maxwell_movement_comp.h>

struct UTILSLIB::HeadPosEntry

A head position entry (time, translation, rotation quaternion).

src/examples/ex_dsp_maxwell/main.cpp
QList<HeadPosEntry> headPos(1); // one position from t = 0: identity rotation, no translation
MaxwellMoveCompParams moveParams;
moveParams.origin = params.origin;
const MatrixXd compensated = MaxwellMovementComp::apply(data, info, headPos, 1.0, moveParams);

QTemporaryDir dir;
const QString posPath = dir.filePath("head.pos"); // same columns as mne.chpi.write_head_pos
const bool posWritten = MaxwellMovementComp::writeHeadPos(posPath, headPos);
const QList<HeadPosEntry> posBack = MaxwellMovementComp::readHeadPos(posPath);

Example​

Used in examples​

ex_dsp_maxwell​

DSP Maxwell filtering: SSS, bad-channel detection, movement compensation, fine calibration and cHPI removal.

src/examples/ex_dsp_maxwell/main.cpp, line 156
QList<HeadPosEntry> headPos(1); // one position from t = 0: identity rotation, no translation
MaxwellMoveCompParams moveParams;
moveParams.origin = params.origin;
const MatrixXd compensated = MaxwellMovementComp::apply(data, info, headPos, 1.0, moveParams);

Authors of this file​