v2.0.0
Loading...
Searching...
No Matches
bids_coordinate_system.h
Go to the documentation of this file.
1//=============================================================================================================
31
32#ifndef BIDS_COORDINATE_SYSTEM_H
33#define BIDS_COORDINATE_SYSTEM_H
34
35//=============================================================================================================
36// INCLUDES
37//=============================================================================================================
38
39#include "bids_global.h"
40
42
43//=============================================================================================================
44// EIGEN INCLUDES
45//=============================================================================================================
46
47#include <Eigen/Core>
48
49//=============================================================================================================
50// QT INCLUDES
51//=============================================================================================================
52
53#include <QString>
54
55//=============================================================================================================
56// DEFINE NAMESPACE BIDSLIB
57//=============================================================================================================
58
59namespace BIDSLIB
60{
61
62//=============================================================================================================
69{
70 QString system;
71 QString units;
72 QString description;
75 Eigen::Matrix4d transform;
76
82 static BidsCoordinateSystem readJson(const QString& sFilePath);
83
90 static bool writeJson(const QString& sFilePath,
91 const BidsCoordinateSystem& cs);
92
100 int toFrame = FIFFV_COORD_HEAD) const;
101};
102
103} // namespace BIDSLIB
104
105#endif // BIDS_COORDINATE_SYSTEM_H
MNE-CPP BIDS library entry point: Qt symbol-visibility plumbing and the BIDSLIB namespace documentati...
#define BIDSSHARED_EXPORT
Definition bids_global.h:43
#define FIFFV_COORD_HEAD
#define FIFFV_COORD_MRI
4x4 affine FIFF coordinate transform (FIFF_COORD_TRANS) annotated with source/destination coordinate-...
BIDS dataset reading, writing, path construction, and sidecar metadata handling for iEEG/EEG/MEG.
Coordinate system metadata from *_coordsystem.json.
static bool writeJson(const QString &sFilePath, const BidsCoordinateSystem &cs)
Write a BIDS *_coordsystem.json file.
static BidsCoordinateSystem readJson(const QString &sFilePath)
Read a BIDS *_coordsystem.json file.
FIFFLIB::FiffCoordTrans toFiffCoordTrans(int fromFrame=FIFFV_COORD_MRI, int toFrame=FIFFV_COORD_HEAD) const
Convert parsed transform to a FiffCoordTrans.
Labelled 4x4 FIFF affine: source frame, destination frame, rotation, translation and cached inverse.