VTK
|
aliases for the nifti1 datatype codes More...
Classes | |
struct | nifti_2_header |
Data structure defining the fields in the nifti2 header. This binary header should be found at the beginning of a valid NIFTI-2 header file. More... | |
Macros | |
#define | NIFTI_TYPE_UINT8 2 |
#define | NIFTI_TYPE_INT16 4 |
#define | NIFTI_TYPE_INT32 8 |
#define | NIFTI_TYPE_FLOAT32 16 |
#define | NIFTI_TYPE_COMPLEX64 32 |
#define | NIFTI_TYPE_FLOAT64 64 |
#define | NIFTI_TYPE_RGB24 128 |
#define | NIFTI_TYPE_INT8 256 |
#define | NIFTI_TYPE_UINT16 512 |
#define | NIFTI_TYPE_UINT32 768 |
#define | NIFTI_TYPE_INT64 1024 |
#define | NIFTI_TYPE_UINT64 1280 |
#define | NIFTI_TYPE_FLOAT128 1536 |
#define | NIFTI_TYPE_COMPLEX128 1792 |
#define | NIFTI_TYPE_COMPLEX256 2048 |
#define | NIFTI_TYPE_RGBA32 2304 |
#define | NIFTI_VERSION(h) |
#define | NIFTI_ONEFILE(h) ( (h).magic[1] == '+' ) |
#define | NIFTI_NEEDS_SWAP(h) ( (h).dim[0] < 0 || (h).dim[0] > 7 ) |
Typedefs | |
typedef struct nifti_2_header | nifti_2_header |
aliases for the nifti1 datatype codes
#define NIFTI_TYPE_UINT8 2 |
unsigned char.
Definition at line 108 of file vtkNIFTIImagePrivate.h.
#define NIFTI_TYPE_INT16 4 |
signed short.
Definition at line 110 of file vtkNIFTIImagePrivate.h.
#define NIFTI_TYPE_INT32 8 |
signed int.
Definition at line 112 of file vtkNIFTIImagePrivate.h.
#define NIFTI_TYPE_FLOAT32 16 |
32 bit float.
Definition at line 114 of file vtkNIFTIImagePrivate.h.
#define NIFTI_TYPE_COMPLEX64 32 |
64 bit complex = 2 32 bit floats.
Definition at line 116 of file vtkNIFTIImagePrivate.h.
#define NIFTI_TYPE_FLOAT64 64 |
64 bit float = double.
Definition at line 118 of file vtkNIFTIImagePrivate.h.
#define NIFTI_TYPE_RGB24 128 |
3 8 bit bytes.
Definition at line 120 of file vtkNIFTIImagePrivate.h.
#define NIFTI_TYPE_INT8 256 |
signed char.
Definition at line 122 of file vtkNIFTIImagePrivate.h.
#define NIFTI_TYPE_UINT16 512 |
unsigned short.
Definition at line 124 of file vtkNIFTIImagePrivate.h.
#define NIFTI_TYPE_UINT32 768 |
unsigned int.
Definition at line 126 of file vtkNIFTIImagePrivate.h.
#define NIFTI_TYPE_INT64 1024 |
signed long long.
Definition at line 128 of file vtkNIFTIImagePrivate.h.
#define NIFTI_TYPE_UINT64 1280 |
unsigned long long.
Definition at line 130 of file vtkNIFTIImagePrivate.h.
#define NIFTI_TYPE_FLOAT128 1536 |
128 bit float = long double.
Definition at line 132 of file vtkNIFTIImagePrivate.h.
#define NIFTI_TYPE_COMPLEX128 1792 |
128 bit complex = 2 64 bit floats.
Definition at line 134 of file vtkNIFTIImagePrivate.h.
#define NIFTI_TYPE_COMPLEX256 2048 |
256 bit complex = 2 128 bit floats
Definition at line 136 of file vtkNIFTIImagePrivate.h.
#define NIFTI_TYPE_RGBA32 2304 |
4 8 bit bytes.
Definition at line 138 of file vtkNIFTIImagePrivate.h.
#define NIFTI_VERSION | ( | h | ) |
Given a nifti_1_header struct, check if it has a good magic number. Returns NIFTI version number (1..9) if magic is good, 0 if it is not.
Definition at line 150 of file vtkNIFTIImagePrivate.h.
Check if a nifti_1_header struct says if the data is stored in the same file or in a separate file. Returns 1 if the data is in the same file as the header, 0 if it is not.
Definition at line 161 of file vtkNIFTIImagePrivate.h.
Check if a nifti_1_header struct needs to be byte swapped. Returns 1 if it needs to be swapped, 0 if it does not.
Definition at line 167 of file vtkNIFTIImagePrivate.h.
typedef struct nifti_2_header nifti_2_header |
Definition at line 262 of file vtkNIFTIImagePrivate.h.
int nifti_1_header::sizeof_hdr |
MUST be 348
Definition at line 38 of file vtkNIFTIImagePrivate.h.
char nifti_1_header::data_type[10] |
++UNUSED++
Definition at line 39 of file vtkNIFTIImagePrivate.h.
char nifti_1_header::db_name[18] |
++UNUSED++
Definition at line 40 of file vtkNIFTIImagePrivate.h.
int nifti_1_header::extents |
++UNUSED++
Definition at line 41 of file vtkNIFTIImagePrivate.h.
short nifti_1_header::session_error |
++UNUSED++
Definition at line 42 of file vtkNIFTIImagePrivate.h.
char nifti_1_header::regular |
++UNUSED++
Definition at line 43 of file vtkNIFTIImagePrivate.h.
char nifti_1_header::dim_info |
MRI slice ordering.
Definition at line 44 of file vtkNIFTIImagePrivate.h.
short nifti_1_header::dim[8] |
Data array dimensions.
Definition at line 45 of file vtkNIFTIImagePrivate.h.
float nifti_1_header::intent_p1 |
1st intent parameter.
Definition at line 46 of file vtkNIFTIImagePrivate.h.
float nifti_1_header::intent_p2 |
2nd intent parameter.
Definition at line 47 of file vtkNIFTIImagePrivate.h.
float nifti_1_header::intent_p3 |
3rd intent parameter.
Definition at line 48 of file vtkNIFTIImagePrivate.h.
short nifti_1_header::intent_code |
NIFTI_INTENT_* code.
Definition at line 49 of file vtkNIFTIImagePrivate.h.
short nifti_1_header::datatype |
Defines data type!
Definition at line 50 of file vtkNIFTIImagePrivate.h.
short nifti_1_header::bitpix |
Number bits/voxel.
Definition at line 51 of file vtkNIFTIImagePrivate.h.
short nifti_1_header::slice_start |
First slice index.
Definition at line 52 of file vtkNIFTIImagePrivate.h.
float nifti_1_header::pixdim[8] |
Grid spacings.
Definition at line 53 of file vtkNIFTIImagePrivate.h.
float nifti_1_header::vox_offset |
Offset into .nii file
Definition at line 54 of file vtkNIFTIImagePrivate.h.
float nifti_1_header::scl_slope |
Data scaling: slope.
Definition at line 55 of file vtkNIFTIImagePrivate.h.
float nifti_1_header::scl_inter |
Data scaling: offset.
Definition at line 56 of file vtkNIFTIImagePrivate.h.
short nifti_1_header::slice_end |
Last slice index.
Definition at line 57 of file vtkNIFTIImagePrivate.h.
char nifti_1_header::slice_code |
Slice timing order.
Definition at line 58 of file vtkNIFTIImagePrivate.h.
char nifti_1_header::xyzt_units |
Units of pixdim[1..4]
Definition at line 59 of file vtkNIFTIImagePrivate.h.
float nifti_1_header::cal_max |
Max display intensity
Definition at line 60 of file vtkNIFTIImagePrivate.h.
float nifti_1_header::cal_min |
Min display intensity
Definition at line 61 of file vtkNIFTIImagePrivate.h.
float nifti_1_header::slice_duration |
Time for 1 slice.
Definition at line 62 of file vtkNIFTIImagePrivate.h.
float nifti_1_header::toffset |
Time axis shift.
Definition at line 63 of file vtkNIFTIImagePrivate.h.
int nifti_1_header::glmax |
++UNUSED++
Definition at line 64 of file vtkNIFTIImagePrivate.h.
int nifti_1_header::glmin |
++UNUSED++
Definition at line 65 of file vtkNIFTIImagePrivate.h.
char nifti_1_header::descrip[80] |
any text you like.
Definition at line 66 of file vtkNIFTIImagePrivate.h.
char nifti_1_header::aux_file[24] |
auxiliary filename.
Definition at line 67 of file vtkNIFTIImagePrivate.h.
short nifti_1_header::qform_code |
NIFTI_XFORM_* code.
Definition at line 68 of file vtkNIFTIImagePrivate.h.
short nifti_1_header::sform_code |
NIFTI_XFORM_* code.
Definition at line 69 of file vtkNIFTIImagePrivate.h.
float nifti_1_header::quatern_b |
Quaternion b param.
Definition at line 70 of file vtkNIFTIImagePrivate.h.
float nifti_1_header::quatern_c |
Quaternion c param.
Definition at line 71 of file vtkNIFTIImagePrivate.h.
float nifti_1_header::quatern_d |
Quaternion d param.
Definition at line 72 of file vtkNIFTIImagePrivate.h.
float nifti_1_header::qoffset_x |
Quaternion x shift.
Definition at line 73 of file vtkNIFTIImagePrivate.h.
float nifti_1_header::qoffset_y |
Quaternion y shift.
Definition at line 74 of file vtkNIFTIImagePrivate.h.
float nifti_1_header::qoffset_z |
Quaternion z shift.
Definition at line 75 of file vtkNIFTIImagePrivate.h.
float nifti_1_header::srow_x[4] |
1st row affine transform.
Definition at line 76 of file vtkNIFTIImagePrivate.h.
float nifti_1_header::srow_y[4] |
2nd row affine transform.
Definition at line 77 of file vtkNIFTIImagePrivate.h.
float nifti_1_header::srow_z[4] |
3rd row affine transform.
Definition at line 78 of file vtkNIFTIImagePrivate.h.
char nifti_1_header::intent_name[16] |
'name' or meaning of data.
Definition at line 79 of file vtkNIFTIImagePrivate.h.
char nifti_1_header::magic[4] |
MUST be "ni1\0" or "n+1\0".
Definition at line 80 of file vtkNIFTIImagePrivate.h.
int nifti_2_header::sizeof_hdr |
MUST be 540
Definition at line 223 of file vtkNIFTIImagePrivate.h.
char nifti_2_header::magic[8] |
MUST be valid signature.
Definition at line 224 of file vtkNIFTIImagePrivate.h.
short nifti_2_header::datatype |
Defines data type!
Definition at line 225 of file vtkNIFTIImagePrivate.h.
short nifti_2_header::bitpix |
Number bits/voxel.
Definition at line 226 of file vtkNIFTIImagePrivate.h.
long long nifti_2_header::dim[8] |
Data array dimensions.
Definition at line 227 of file vtkNIFTIImagePrivate.h.
double nifti_2_header::intent_p1 |
1st intent parameter.
Definition at line 228 of file vtkNIFTIImagePrivate.h.
double nifti_2_header::intent_p2 |
2nd intent parameter.
Definition at line 229 of file vtkNIFTIImagePrivate.h.
double nifti_2_header::intent_p3 |
3rd intent parameter.
Definition at line 230 of file vtkNIFTIImagePrivate.h.
double nifti_2_header::pixdim[8] |
Grid spacings.
Definition at line 231 of file vtkNIFTIImagePrivate.h.
long long nifti_2_header::vox_offset |
Offset into .nii file
Definition at line 232 of file vtkNIFTIImagePrivate.h.
double nifti_2_header::scl_slope |
Data scaling: slope.
Definition at line 233 of file vtkNIFTIImagePrivate.h.
double nifti_2_header::scl_inter |
Data scaling: offset.
Definition at line 234 of file vtkNIFTIImagePrivate.h.
double nifti_2_header::cal_max |
Max display intensity
Definition at line 235 of file vtkNIFTIImagePrivate.h.
double nifti_2_header::cal_min |
Min display intensity
Definition at line 236 of file vtkNIFTIImagePrivate.h.
double nifti_2_header::slice_duration |
Time for 1 slice.
Definition at line 237 of file vtkNIFTIImagePrivate.h.
double nifti_2_header::toffset |
Time axis shift.
Definition at line 238 of file vtkNIFTIImagePrivate.h.
long long nifti_2_header::slice_start |
First slice index.
Definition at line 239 of file vtkNIFTIImagePrivate.h.
long long nifti_2_header::slice_end |
Last slice index.
Definition at line 240 of file vtkNIFTIImagePrivate.h.
char nifti_2_header::descrip[80] |
any text you like.
Definition at line 241 of file vtkNIFTIImagePrivate.h.
char nifti_2_header::aux_file[24] |
auxiliary filename.
Definition at line 242 of file vtkNIFTIImagePrivate.h.
int nifti_2_header::qform_code |
NIFTI_XFORM_* code.
Definition at line 243 of file vtkNIFTIImagePrivate.h.
int nifti_2_header::sform_code |
NIFTI_XFORM_* code.
Definition at line 244 of file vtkNIFTIImagePrivate.h.
double nifti_2_header::quatern_b |
Quaternion b param.
Definition at line 245 of file vtkNIFTIImagePrivate.h.
double nifti_2_header::quatern_c |
Quaternion c param.
Definition at line 246 of file vtkNIFTIImagePrivate.h.
double nifti_2_header::quatern_d |
Quaternion d param.
Definition at line 247 of file vtkNIFTIImagePrivate.h.
double nifti_2_header::qoffset_x |
Quaternion x shift.
Definition at line 248 of file vtkNIFTIImagePrivate.h.
double nifti_2_header::qoffset_y |
Quaternion y shift.
Definition at line 249 of file vtkNIFTIImagePrivate.h.
double nifti_2_header::qoffset_z |
Quaternion z shift.
Definition at line 250 of file vtkNIFTIImagePrivate.h.
double nifti_2_header::srow_x[4] |
1st row affine transform.
Definition at line 251 of file vtkNIFTIImagePrivate.h.
double nifti_2_header::srow_y[4] |
2nd row affine transform.
Definition at line 252 of file vtkNIFTIImagePrivate.h.
double nifti_2_header::srow_z[4] |
3rd row affine transform.
Definition at line 253 of file vtkNIFTIImagePrivate.h.
int nifti_2_header::slice_code |
Slice timing order.
Definition at line 254 of file vtkNIFTIImagePrivate.h.
int nifti_2_header::xyzt_units |
Units of pixdim[1..4]
Definition at line 255 of file vtkNIFTIImagePrivate.h.
int nifti_2_header::intent_code |
NIFTI_INTENT_* code.
Definition at line 256 of file vtkNIFTIImagePrivate.h.
char nifti_2_header::intent_name[16] |
'name' or meaning of data.
Definition at line 257 of file vtkNIFTIImagePrivate.h.
char nifti_2_header::dim_info |
MRI slice ordering.
Definition at line 258 of file vtkNIFTIImagePrivate.h.
char nifti_2_header::unused_str[15] |
unused, filled with \0
Definition at line 259 of file vtkNIFTIImagePrivate.h.