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//=============================================================================================================
48
50constexpr int MRI_MGH_VERSION = 1;
51
53
54//=============================================================================================================
67
68constexpr int MRI_UCHAR = 0;
69constexpr int MRI_INT = 1;
70constexpr int MRI_LONG = 2;
71constexpr int MRI_FLOAT = 3;
72constexpr int MRI_SHORT = 4;
73constexpr int MRI_BITMAP = 5;
74constexpr int MRI_TENSOR = 6;
75
77
78//=============================================================================================================
83
84constexpr int MRI_ALL_FRAMES = -1;
85constexpr int MRI_NO_FRAMES = -2;
86
88
89//=============================================================================================================
98
100constexpr int MRI_MGH_DATA_OFFSET = 284;
101
103constexpr int MRI_MGH_HEADER_FIXED_SIZE = 30; // 7*int(4) + 1*short(2)
104
106
107//=============================================================================================================
116
117constexpr int MGH_TAG_OLD_SURF_GEOM = 20;
118constexpr int MGH_TAG_OLD_MGH_XFORM = 30;
119constexpr int MGH_TAG_MGH_XFORM = 31;
120
122
123//=============================================================================================================
132
133constexpr int COR_NSLICE = 256;
134constexpr int COR_WIDTH = 256;
135constexpr int COR_HEIGHT = 256;
136constexpr float COR_PIXEL_SIZE = 1e-3f;
137
139
140} // namespace MRILIB
141
142#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:50
constexpr float COR_PIXEL_SIZE
Definition mri_types.h:136
constexpr int MGH_TAG_OLD_MGH_XFORM
Definition mri_types.h:118
constexpr int MRI_ALL_FRAMES
Definition mri_types.h:84
constexpr int MRI_MGH_DATA_OFFSET
Definition mri_types.h:100
constexpr int MRI_BITMAP
Definition mri_types.h:73
constexpr int MGH_TAG_OLD_SURF_GEOM
Definition mri_types.h:117
constexpr int MGH_TAG_MGH_XFORM
Definition mri_types.h:119
constexpr int MRI_SHORT
Definition mri_types.h:72
constexpr int COR_HEIGHT
Definition mri_types.h:135
constexpr int MRI_NO_FRAMES
Definition mri_types.h:85
constexpr int MRI_UCHAR
Definition mri_types.h:68
constexpr int COR_WIDTH
Definition mri_types.h:134
constexpr int MRI_TENSOR
Definition mri_types.h:74
constexpr int MRI_INT
Definition mri_types.h:69
constexpr int COR_NSLICE
Definition mri_types.h:133
constexpr int MRI_FLOAT
Definition mri_types.h:71
constexpr int MRI_LONG
Definition mri_types.h:70
constexpr int MRI_MGH_HEADER_FIXED_SIZE
Definition mri_types.h:103