FiffDigPoint
Namespace: FIFFLIB · Library: FIFF Library
#include <fiff/fiff_dig_point.h>
class FIFFLIB::FiffDigPoint
One digitizer point: kind (cardinal/HPI/EEG/extra), ident, 3D position in FIFFV_COORD_HEAD.
Field layout matches fiffDigPointRec on disk. The (kind, ident) pair is the lookup key used everywhere else in the codebase — for example, the LPA/Nasion/RPA fiducials are found by searching for kind == FIFFV_POINT_CARDINAL and ident == 1 / 2 / 3.
src/examples/ex_fiff_api/main.cpp
FiffDigPointSet digitizer(info.dig); // 146 points in head coordinates
FiffDigPointSet cardinal = digitizer.pickTypes({FIFFV_POINT_CARDINAL}); // LPA, nasion, RPA
Public Methods
FiffDigPoint()
Constructs the digitization point description.
~FiffDigPoint()
Destroys the digitization point description.
Static Methods
storageSize()
Size of the old struct (fiffDigPointRec) 5int = 54 = 20.
Returns:
- qint32 — the size of the old struct
fiffDigPointRec.
Example
- Full source:
src/examples/ex_fiff_api/main.cpp - Build target:
ex_fiff_api(runs under CTest) - Data: mne-cpp-test-data
Used in examples
ex_fiff_api
FIFF library: measurement info, channels, digitizer, transforms, projectors, covariance, events,.
src/examples/ex_fiff_api/main.cpp, line 126
// mne: 146 points; dig[0] = LPA at (-0.0713766, 0, 5.1e-9)
ok &= expect(digitizer.size() == 146 && cardinal.size() == 3 && cardinal[0].ident == FIFFV_POINT_LPA && std::fabs(cardinal[0].r[0] + 0.07137661f) < 1e-7f,
"FiffDigPointSet/FiffDigPoint: 146 points, LPA at x = -71.38 mm");
Authors of this file
- Christoph Dinh <christoph.dinh@mne-cpp.org>
- Christof Pieloth <pieloth@labp.htwk-leipzig.de>
- Jana Kiesel <jana.kiesel@tu-ilmenau.de>
- Lorenz Esch <lorenz.esch@tu-ilmenau.de>
- Ruben Doerfel <doerfelruben@aol.com>
- Juan GPC <jgarciaprieto@mgh.harvard.edu>
- Gabriel Motta <gabrielbenmotta@gmail.com>