v2.0.0
Loading...
Searching...
No Matches
mri_types.h
Go to the documentation of this file.
1//=============================================================================================================
33
34#ifndef MRI_TYPES_H
35#define MRI_TYPES_H
36
37//=============================================================================================================
38// DEFINE NAMESPACE MRILIB
39//=============================================================================================================
40
41namespace MRILIB
42{
43
44//=============================================================================================================
49
51constexpr int MRI_MGH_VERSION = 1;
52
54
55//=============================================================================================================
68
69constexpr int MRI_UCHAR = 0;
70constexpr int MRI_INT = 1;
71constexpr int MRI_LONG = 2;
72constexpr int MRI_FLOAT = 3;
73constexpr int MRI_SHORT = 4;
74constexpr int MRI_BITMAP = 5;
75constexpr int MRI_TENSOR = 6;
76
78
79//=============================================================================================================
84
85constexpr int MRI_ALL_FRAMES = -1;
86constexpr int MRI_NO_FRAMES = -2;
87
89
90//=============================================================================================================
99
101constexpr int MRI_MGH_DATA_OFFSET = 284;
102
104constexpr int MRI_MGH_HEADER_FIXED_SIZE = 30; // 7*int(4) + 1*short(2)
105
107
108//=============================================================================================================
117
118constexpr int MGH_TAG_OLD_SURF_GEOM = 20;
119constexpr int MGH_TAG_OLD_MGH_XFORM = 30;
120constexpr int MGH_TAG_MGH_XFORM = 31;
121
123
124//=============================================================================================================
133
134constexpr int COR_NSLICE = 256;
135constexpr int COR_WIDTH = 256;
136constexpr int COR_HEIGHT = 256;
137constexpr float COR_PIXEL_SIZE = 1e-3f;
138
140
141} // namespace MRILIB
142
143#endif // MRI_TYPES_H
Volume I/O, voxel geometry and slice resampling for structural MRI data inside mne-cpp.
constexpr int MRI_MGH_VERSION
Definition mri_types.h:51
constexpr float COR_PIXEL_SIZE
Definition mri_types.h:137
constexpr int MGH_TAG_OLD_MGH_XFORM
Definition mri_types.h:119
constexpr int MRI_ALL_FRAMES
Definition mri_types.h:85
constexpr int MRI_MGH_DATA_OFFSET
Definition mri_types.h:101
constexpr int MRI_BITMAP
Definition mri_types.h:74
constexpr int MGH_TAG_OLD_SURF_GEOM
Definition mri_types.h:118
constexpr int MGH_TAG_MGH_XFORM
Definition mri_types.h:120
constexpr int MRI_SHORT
Definition mri_types.h:73
constexpr int COR_HEIGHT
Definition mri_types.h:136
constexpr int MRI_NO_FRAMES
Definition mri_types.h:86
constexpr int MRI_UCHAR
Definition mri_types.h:69
constexpr int COR_WIDTH
Definition mri_types.h:135
constexpr int MRI_TENSOR
Definition mri_types.h:75
constexpr int MRI_INT
Definition mri_types.h:70
constexpr int COR_NSLICE
Definition mri_types.h:134
constexpr int MRI_FLOAT
Definition mri_types.h:72
constexpr int MRI_LONG
Definition mri_types.h:71
constexpr int MRI_MGH_HEADER_FIXED_SIZE
Definition mri_types.h:104