109 #define NIFTI_TYPE_UINT8 2
111 #define NIFTI_TYPE_INT16 4
113 #define NIFTI_TYPE_INT32 8
115 #define NIFTI_TYPE_FLOAT32 16
117 #define NIFTI_TYPE_COMPLEX64 32
119 #define NIFTI_TYPE_FLOAT64 64
121 #define NIFTI_TYPE_RGB24 128
123 #define NIFTI_TYPE_INT8 256
125 #define NIFTI_TYPE_UINT16 512
127 #define NIFTI_TYPE_UINT32 768
129 #define NIFTI_TYPE_INT64 1024
131 #define NIFTI_TYPE_UINT64 1280
133 #define NIFTI_TYPE_FLOAT128 1536
135 #define NIFTI_TYPE_COMPLEX128 1792
137 #define NIFTI_TYPE_COMPLEX256 2048
139 #define NIFTI_TYPE_RGBA32 2304
151 #define NIFTI_VERSION(h) \
152 ( ( (h).magic[0]=='n' && (h).magic[3]=='\0' && \
153 ( (h).magic[1]=='i' || (h).magic[1]=='+' ) && \
154 ( (h).magic[2]>='1' && (h).magic[2]<='9' ) ) \
155 ? (h).magic[2]-'0' : 0 )
162 #define NIFTI_ONEFILE(h) ( (h).magic[1] == '+' )
168 #define NIFTI_NEEDS_SWAP(h) ( (h).dim[0] < 0 || (h).dim[0] > 7 )
179 #ifndef __NIFTI2_HEADER
180 #define __NIFTI2_HEADER
short intent_code
Definition: vtkNIFTIPrivate.h:50
float srow_y[4]
Definition: vtkNIFTIPrivate.h:78
int glmax
Definition: vtkNIFTIPrivate.h:65
double srow_x[4]
Definition: vtkNIFTIPrivate.h:257
int sizeof_hdr
Definition: vtkNIFTIPrivate.h:229
float toffset
Definition: vtkNIFTIPrivate.h:64
char db_name[18]
Definition: vtkNIFTIPrivate.h:41
double scl_slope
Definition: vtkNIFTIPrivate.h:239
short session_error
Definition: vtkNIFTIPrivate.h:43
int intent_code
Definition: vtkNIFTIPrivate.h:262
short datatype
Definition: vtkNIFTIPrivate.h:231
short slice_end
Definition: vtkNIFTIPrivate.h:58
float quatern_c
Definition: vtkNIFTIPrivate.h:72
double qoffset_z
Definition: vtkNIFTIPrivate.h:256
char data_type[10]
Definition: vtkNIFTIPrivate.h:40
float scl_slope
Definition: vtkNIFTIPrivate.h:56
long long vox_offset
Definition: vtkNIFTIPrivate.h:238
short sform_code
Definition: vtkNIFTIPrivate.h:70
long long dim[8]
Definition: vtkNIFTIPrivate.h:233
double intent_p1
Definition: vtkNIFTIPrivate.h:234
float quatern_b
Definition: vtkNIFTIPrivate.h:71
int slice_code
Definition: vtkNIFTIPrivate.h:260
char intent_name[16]
Definition: vtkNIFTIPrivate.h:263
long long slice_end
Definition: vtkNIFTIPrivate.h:246
char magic[4]
Definition: vtkNIFTIPrivate.h:81
float intent_p1
Definition: vtkNIFTIPrivate.h:47
float qoffset_y
Definition: vtkNIFTIPrivate.h:75
float cal_min
Definition: vtkNIFTIPrivate.h:62
short bitpix
Definition: vtkNIFTIPrivate.h:52
char xyzt_units
Definition: vtkNIFTIPrivate.h:60
float qoffset_x
Definition: vtkNIFTIPrivate.h:74
float slice_duration
Definition: vtkNIFTIPrivate.h:63
double pixdim[8]
Definition: vtkNIFTIPrivate.h:237
char descrip[80]
Definition: vtkNIFTIPrivate.h:247
char dim_info
Definition: vtkNIFTIPrivate.h:45
double toffset
Definition: vtkNIFTIPrivate.h:244
char descrip[80]
Definition: vtkNIFTIPrivate.h:67
char magic[8]
Definition: vtkNIFTIPrivate.h:230
short bitpix
Definition: vtkNIFTIPrivate.h:232
double intent_p3
Definition: vtkNIFTIPrivate.h:236
double quatern_c
Definition: vtkNIFTIPrivate.h:252
char aux_file[24]
Definition: vtkNIFTIPrivate.h:68
short qform_code
Definition: vtkNIFTIPrivate.h:69
char unused_str[15]
Definition: vtkNIFTIPrivate.h:265
float qoffset_z
Definition: vtkNIFTIPrivate.h:76
double scl_inter
Definition: vtkNIFTIPrivate.h:240
float intent_p3
Definition: vtkNIFTIPrivate.h:49
float vox_offset
Definition: vtkNIFTIPrivate.h:55
double slice_duration
Definition: vtkNIFTIPrivate.h:243
double quatern_b
Definition: vtkNIFTIPrivate.h:251
int qform_code
Definition: vtkNIFTIPrivate.h:249
double cal_max
Definition: vtkNIFTIPrivate.h:241
int extents
Definition: vtkNIFTIPrivate.h:42
float intent_p2
Definition: vtkNIFTIPrivate.h:48
double srow_z[4]
Definition: vtkNIFTIPrivate.h:259
double cal_min
Definition: vtkNIFTIPrivate.h:242
short dim[8]
Definition: vtkNIFTIPrivate.h:46
double intent_p2
Definition: vtkNIFTIPrivate.h:235
long long slice_start
Definition: vtkNIFTIPrivate.h:245
int sform_code
Definition: vtkNIFTIPrivate.h:250
float scl_inter
Definition: vtkNIFTIPrivate.h:57
double quatern_d
Definition: vtkNIFTIPrivate.h:253
int glmin
Definition: vtkNIFTIPrivate.h:66
double srow_y[4]
Definition: vtkNIFTIPrivate.h:258
char regular
Definition: vtkNIFTIPrivate.h:44
char dim_info
Definition: vtkNIFTIPrivate.h:264
short datatype
Definition: vtkNIFTIPrivate.h:51
float srow_x[4]
Definition: vtkNIFTIPrivate.h:77
short slice_start
Definition: vtkNIFTIPrivate.h:53
char aux_file[24]
Definition: vtkNIFTIPrivate.h:248
char intent_name[16]
Definition: vtkNIFTIPrivate.h:80
double qoffset_y
Definition: vtkNIFTIPrivate.h:255
float srow_z[4]
Definition: vtkNIFTIPrivate.h:79
int xyzt_units
Definition: vtkNIFTIPrivate.h:261
double qoffset_x
Definition: vtkNIFTIPrivate.h:254
int sizeof_hdr
Definition: vtkNIFTIPrivate.h:39
char slice_code
Definition: vtkNIFTIPrivate.h:59
float pixdim[8]
Definition: vtkNIFTIPrivate.h:54
float cal_max
Definition: vtkNIFTIPrivate.h:61
float quatern_d
Definition: vtkNIFTIPrivate.h:73