aliases for the nifti1 datatype codes
More...
|
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...
|
|
aliases for the nifti1 datatype codes
◆ NIFTI_NEEDS_SWAP
#define NIFTI_NEEDS_SWAP |
( |
|
h | ) |
( (h).dim[0] < 0 || (h).dim[0] > 7 ) |
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.
◆ NIFTI_ONEFILE
#define NIFTI_ONEFILE |
( |
|
h | ) |
( (h).magic[1] == '+' ) |
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.
◆ NIFTI_TYPE_COMPLEX128
#define NIFTI_TYPE_COMPLEX128 1792 |
128 bit complex = 2 64 bit floats.
◆ NIFTI_TYPE_COMPLEX256
#define NIFTI_TYPE_COMPLEX256 2048 |
256 bit complex = 2 128 bit floats
◆ NIFTI_TYPE_COMPLEX64
#define NIFTI_TYPE_COMPLEX64 32 |
64 bit complex = 2 32 bit floats.
◆ NIFTI_TYPE_FLOAT128
#define NIFTI_TYPE_FLOAT128 1536 |
128 bit float = long double.
◆ NIFTI_TYPE_FLOAT32
#define NIFTI_TYPE_FLOAT32 16 |
◆ NIFTI_TYPE_FLOAT64
#define NIFTI_TYPE_FLOAT64 64 |
◆ NIFTI_TYPE_INT16
#define NIFTI_TYPE_INT16 4 |
◆ NIFTI_TYPE_INT32
#define NIFTI_TYPE_INT32 8 |
◆ NIFTI_TYPE_INT64
#define NIFTI_TYPE_INT64 1024 |
◆ NIFTI_TYPE_INT8
#define NIFTI_TYPE_INT8 256 |
◆ NIFTI_TYPE_RGB24
#define NIFTI_TYPE_RGB24 128 |
◆ NIFTI_TYPE_RGBA32
#define NIFTI_TYPE_RGBA32 2304 |
◆ NIFTI_TYPE_UINT16
#define NIFTI_TYPE_UINT16 512 |
◆ NIFTI_TYPE_UINT32
#define NIFTI_TYPE_UINT32 768 |
◆ NIFTI_TYPE_UINT64
#define NIFTI_TYPE_UINT64 1280 |
◆ NIFTI_TYPE_UINT8
#define NIFTI_TYPE_UINT8 2 |
◆ NIFTI_VERSION
#define NIFTI_VERSION |
( |
|
h | ) |
|
Value: ( ( (h).magic[0]=='n' && (h).magic[3]=='\0' && \
( (h).magic[1]=='i' || (h).magic[1]=='+' ) && \
( (h).magic[2]>='1' && (h).magic[2]<='9' ) ) \
? (h).magic[2]-'0' : 0 )
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.
◆ aux_file [1/2]
char nifti_1_header::aux_file[24] |
◆ aux_file [2/2]
char nifti_2_header::aux_file[24] |
◆ bitpix [1/2]
short nifti_1_header::bitpix |
◆ bitpix [2/2]
short nifti_2_header::bitpix |
◆ cal_max [1/2]
float nifti_1_header::cal_max |
◆ cal_max [2/2]
double nifti_2_header::cal_max |
◆ cal_min [1/2]
float nifti_1_header::cal_min |
◆ cal_min [2/2]
double nifti_2_header::cal_min |
◆ data_type
char nifti_1_header::data_type[10] |
◆ datatype [1/2]
short nifti_1_header::datatype |
◆ datatype [2/2]
short nifti_2_header::datatype |
◆ db_name
char nifti_1_header::db_name[18] |
◆ descrip [1/2]
char nifti_1_header::descrip[80] |
◆ descrip [2/2]
char nifti_2_header::descrip[80] |
◆ dim [1/2]
short nifti_1_header::dim[8] |
◆ dim [2/2]
long long nifti_2_header::dim[8] |
◆ dim_info [1/2]
char nifti_1_header::dim_info |
◆ dim_info [2/2]
char nifti_2_header::dim_info |
◆ extents
int nifti_1_header::extents |
◆ glmax
int nifti_1_header::glmax |
◆ glmin
int nifti_1_header::glmin |
◆ intent_code [1/2]
short nifti_1_header::intent_code |
◆ intent_code [2/2]
int nifti_2_header::intent_code |
◆ intent_name [1/2]
char nifti_1_header::intent_name[16] |
'name' or meaning of data.
◆ intent_name [2/2]
char nifti_2_header::intent_name[16] |
'name' or meaning of data.
◆ intent_p1 [1/2]
float nifti_1_header::intent_p1 |
◆ intent_p1 [2/2]
double nifti_2_header::intent_p1 |
◆ intent_p2 [1/2]
float nifti_1_header::intent_p2 |
◆ intent_p2 [2/2]
double nifti_2_header::intent_p2 |
◆ intent_p3 [1/2]
float nifti_1_header::intent_p3 |
◆ intent_p3 [2/2]
double nifti_2_header::intent_p3 |
◆ magic [1/2]
char nifti_1_header::magic[4] |
MUST be "ni1\0" or "n+1\0".
◆ magic [2/2]
char nifti_2_header::magic[8] |
◆ pixdim [1/2]
float nifti_1_header::pixdim[8] |
◆ pixdim [2/2]
double nifti_2_header::pixdim[8] |
◆ qform_code [1/2]
short nifti_1_header::qform_code |
◆ qform_code [2/2]
int nifti_2_header::qform_code |
◆ qoffset_x [1/2]
float nifti_1_header::qoffset_x |
◆ qoffset_x [2/2]
double nifti_2_header::qoffset_x |
◆ qoffset_y [1/2]
float nifti_1_header::qoffset_y |
◆ qoffset_y [2/2]
double nifti_2_header::qoffset_y |
◆ qoffset_z [1/2]
float nifti_1_header::qoffset_z |
◆ qoffset_z [2/2]
double nifti_2_header::qoffset_z |
◆ quatern_b [1/2]
float nifti_1_header::quatern_b |
◆ quatern_b [2/2]
double nifti_2_header::quatern_b |
◆ quatern_c [1/2]
float nifti_1_header::quatern_c |
◆ quatern_c [2/2]
double nifti_2_header::quatern_c |
◆ quatern_d [1/2]
float nifti_1_header::quatern_d |
◆ quatern_d [2/2]
double nifti_2_header::quatern_d |
◆ regular
char nifti_1_header::regular |
◆ scl_inter [1/2]
float nifti_1_header::scl_inter |
◆ scl_inter [2/2]
double nifti_2_header::scl_inter |
◆ scl_slope [1/2]
float nifti_1_header::scl_slope |
◆ scl_slope [2/2]
double nifti_2_header::scl_slope |
◆ session_error
short nifti_1_header::session_error |
◆ sform_code [1/2]
short nifti_1_header::sform_code |
◆ sform_code [2/2]
int nifti_2_header::sform_code |
◆ sizeof_hdr [1/2]
int nifti_1_header::sizeof_hdr |
◆ sizeof_hdr [2/2]
int nifti_2_header::sizeof_hdr |
◆ slice_code [1/2]
char nifti_1_header::slice_code |
◆ slice_code [2/2]
int nifti_2_header::slice_code |
◆ slice_duration [1/2]
float nifti_1_header::slice_duration |
◆ slice_duration [2/2]
double nifti_2_header::slice_duration |
◆ slice_end [1/2]
short nifti_1_header::slice_end |
◆ slice_end [2/2]
long long nifti_2_header::slice_end |
◆ slice_start [1/2]
short nifti_1_header::slice_start |
◆ slice_start [2/2]
long long nifti_2_header::slice_start |
◆ srow_x [1/2]
float nifti_1_header::srow_x[4] |
1st row affine transform.
◆ srow_x [2/2]
double nifti_2_header::srow_x[4] |
1st row affine transform.
◆ srow_y [1/2]
float nifti_1_header::srow_y[4] |
2nd row affine transform.
◆ srow_y [2/2]
double nifti_2_header::srow_y[4] |
2nd row affine transform.
◆ srow_z [1/2]
float nifti_1_header::srow_z[4] |
3rd row affine transform.
◆ srow_z [2/2]
double nifti_2_header::srow_z[4] |
3rd row affine transform.
◆ toffset [1/2]
float nifti_1_header::toffset |
◆ toffset [2/2]
double nifti_2_header::toffset |
◆ unused_str
char nifti_2_header::unused_str[15] |
◆ vox_offset [1/2]
float nifti_1_header::vox_offset |
◆ vox_offset [2/2]
long long nifti_2_header::vox_offset |
◆ xyzt_units [1/2]
char nifti_1_header::xyzt_units |
◆ xyzt_units [2/2]
int nifti_2_header::xyzt_units |