v2.0.0
Loading...
Searching...
No Matches
mri_types.h
Go to the documentation of this file.
1//=============================================================================================================
40
41#ifndef MRI_TYPES_H
42#define MRI_TYPES_H
43
44//=============================================================================================================
45// DEFINE NAMESPACE MRILIB
46//=============================================================================================================
47
48namespace MRILIB {
49
50//=============================================================================================================
55
57constexpr int MRI_MGH_VERSION = 1;
58
60
61//=============================================================================================================
74
75constexpr int MRI_UCHAR = 0;
76constexpr int MRI_INT = 1;
77constexpr int MRI_LONG = 2;
78constexpr int MRI_FLOAT = 3;
79constexpr int MRI_SHORT = 4;
80constexpr int MRI_BITMAP = 5;
81constexpr int MRI_TENSOR = 6;
82
84
85//=============================================================================================================
90
91constexpr int MRI_ALL_FRAMES = -1;
92constexpr int MRI_NO_FRAMES = -2;
93
95
96//=============================================================================================================
105
107constexpr int MRI_MGH_DATA_OFFSET = 284;
108
110constexpr int MRI_MGH_HEADER_FIXED_SIZE = 30; // 7*int(4) + 1*short(2)
111
113
114//=============================================================================================================
123
124constexpr int MGH_TAG_OLD_SURF_GEOM = 20;
125constexpr int MGH_TAG_OLD_MGH_XFORM = 30;
126constexpr int MGH_TAG_MGH_XFORM = 31;
127
129
130//=============================================================================================================
139
140constexpr int COR_NSLICE = 256;
141constexpr int COR_WIDTH = 256;
142constexpr int COR_HEIGHT = 256;
143constexpr float COR_PIXEL_SIZE = 1e-3f;
144
146
147} // namespace MRILIB
148
149#endif // MRI_TYPES_H
MRI volume and coordinate-system I/O (volumes, voxel geometry, transforms).
constexpr int MRI_MGH_VERSION
Definition mri_types.h:57
constexpr float COR_PIXEL_SIZE
Definition mri_types.h:143
constexpr int MGH_TAG_OLD_MGH_XFORM
Definition mri_types.h:125
constexpr int MRI_ALL_FRAMES
Definition mri_types.h:91
constexpr int MRI_MGH_DATA_OFFSET
Definition mri_types.h:107
constexpr int MRI_BITMAP
Definition mri_types.h:80
constexpr int MGH_TAG_OLD_SURF_GEOM
Definition mri_types.h:124
constexpr int MGH_TAG_MGH_XFORM
Definition mri_types.h:126
constexpr int MRI_SHORT
Definition mri_types.h:79
constexpr int COR_HEIGHT
Definition mri_types.h:142
constexpr int MRI_NO_FRAMES
Definition mri_types.h:92
constexpr int MRI_UCHAR
Definition mri_types.h:75
constexpr int COR_WIDTH
Definition mri_types.h:141
constexpr int MRI_TENSOR
Definition mri_types.h:81
constexpr int MRI_INT
Definition mri_types.h:76
constexpr int COR_NSLICE
Definition mri_types.h:140
constexpr int MRI_FLOAT
Definition mri_types.h:78
constexpr int MRI_LONG
Definition mri_types.h:77
constexpr int MRI_MGH_HEADER_FIXED_SIZE
Definition mri_types.h:110