nifti1_io
|
nifti1 slice order codes, describing the acquisition order of the slices More...
Macros | |
#define | NIFTI_SLICE_UNKNOWN 0 |
#define | NIFTI_SLICE_SEQ_INC 1 |
#define | NIFTI_SLICE_SEQ_DEC 2 |
#define | NIFTI_SLICE_ALT_INC 3 |
#define | NIFTI_SLICE_ALT_DEC 4 |
#define | NIFTI_SLICE_ALT_INC2 5 /* 05 May 2005: RWCox */ |
#define | NIFTI_SLICE_ALT_DEC2 6 /* 05 May 2005: RWCox */ |
#define | NIFTI_VERSION(h) |
#define | NIFTI_ONEFILE(h) |
#define | NIFTI_NEEDS_SWAP(h) |
#define | NIFTI_5TH_DIM(h) |
nifti1 slice order codes, describing the acquisition order of the slices
#define NIFTI_5TH_DIM | ( | h | ) |
Check if a nifti_1_header struct contains a 5th (vector) dimension. Returns size of 5th dimension if > 1, returns 0 otherwise.
#define NIFTI_NEEDS_SWAP | ( | 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.
#define NIFTI_ONEFILE | ( | 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.
#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.
char nifti_1_header::aux_file[24] |
auxiliary filename.
short nifti_1_header::bitpix |
Number bits/voxel.
float nifti_1_header::cal_max |
Max display intensity
float nifti_1_header::cal_min |
Min display intensity
char nifti_1_header::data_type[10] |
++UNUSED++
short nifti_1_header::datatype |
Defines data type!
char nifti_1_header::db_name[18] |
++UNUSED++
char nifti_1_header::descrip[80] |
any text you like.
short nifti_1_header::dim[8] |
Data array dimensions.
char nifti_1_header::dim_info |
MRI slice ordering.
int nifti1_extension::ecode |
extension code, one of the NIFTI_ECODE_ values
char* nifti1_extension::edata |
raw data, with no byte swapping (length is esize-8)
int nifti1_extension::esize |
size of extension, in bytes (must be multiple of 16)
int nifti_1_header::extents |
++UNUSED++
int nifti_1_header::glmax |
++UNUSED++
int nifti_1_header::glmin |
++UNUSED++
short nifti_1_header::intent_code |
NIFTI_INTENT_* code.
char nifti_1_header::intent_name[16] |
'name' or meaning of data.
float nifti_1_header::intent_p1 |
1st intent parameter.
float nifti_1_header::intent_p2 |
2nd intent parameter.
float nifti_1_header::intent_p3 |
3rd intent parameter.
char nifti_1_header::magic[4] |
MUST be "ni1\0" or "n+1\0".
float nifti_1_header::pixdim[8] |
Grid spacings.
short nifti_1_header::qform_code |
NIFTI_XFORM_* code.
float nifti_1_header::qoffset_x |
Quaternion x shift.
float nifti_1_header::qoffset_y |
Quaternion y shift.
float nifti_1_header::qoffset_z |
Quaternion z shift.
float nifti_1_header::quatern_b |
Quaternion b param.
float nifti_1_header::quatern_c |
Quaternion c param.
float nifti_1_header::quatern_d |
Quaternion d param.
char nifti_1_header::regular |
++UNUSED++
float nifti_1_header::scl_inter |
Data scaling: offset.
float nifti_1_header::scl_slope |
Data scaling: slope.
short nifti_1_header::session_error |
++UNUSED++
short nifti_1_header::sform_code |
NIFTI_XFORM_* code.
int nifti_1_header::sizeof_hdr |
MUST be 348
char nifti_1_header::slice_code |
Slice timing order.
float nifti_1_header::slice_duration |
Time for 1 slice.
short nifti_1_header::slice_end |
Last slice index.
short nifti_1_header::slice_start |
First slice index.
float nifti_1_header::srow_x[4] |
1st row affine transform.
float nifti_1_header::srow_y[4] |
2nd row affine transform.
float nifti_1_header::srow_z[4] |
3rd row affine transform.
float nifti_1_header::toffset |
Time axis shift.
float nifti_1_header::vox_offset |
Offset into .nii file
char nifti_1_header::xyzt_units |
Units of pixdim[1..4]