Go to the documentation of this file. 1 #ifndef vtkNIFTIImagePrivate_h
2 #define vtkNIFTIImagePrivate_h
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 )