Developer documentation
Version 3.0.3-105-gd3941f44
nifti_2_header Struct Reference

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...

#include "file/nifti2.h"

Public Attributes

int sizeof_hdr
 
char magic [8]
 
int16_t datatype
 
int16_t bitpix
 
int64_t dim [8]
 
double intent_p1
 
double intent_p2
 
double intent_p3
 
double pixdim [8]
 
int64_t vox_offset
 
double scl_slope
 
double scl_inter
 
double cal_max
 
double cal_min
 
double slice_duration
 
double toffset
 
int64_t slice_start
 
int64_t slice_end
 
char descrip [80]
 
char aux_file [24]
 
int qform_code
 
int sform_code
 
double quatern_b
 
double quatern_c
 
double quatern_d
 
double qoffset_x
 
double qoffset_y
 
double qoffset_z
 
double srow_x [4]
 
double srow_y [4]
 
double srow_z [4]
 
int slice_code
 
int xyzt_units
 
int intent_code
 
char intent_name [16]
 
char dim_info
 
char unused_str [15]
 

Detailed Description

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.

Definition at line 71 of file nifti2.h.

Member Data Documentation

◆ aux_file

char nifti_2_header::aux_file[24]

auxiliary filename.

Definition at line 92 of file nifti2.h.

◆ bitpix

int16_t nifti_2_header::bitpix

Number bits/voxel.

Definition at line 76 of file nifti2.h.

◆ cal_max

double nifti_2_header::cal_max

Max display intensity

Definition at line 85 of file nifti2.h.

◆ cal_min

double nifti_2_header::cal_min

Min display intensity

Definition at line 86 of file nifti2.h.

◆ datatype

int16_t nifti_2_header::datatype

Defines data type!

Definition at line 75 of file nifti2.h.

◆ descrip

char nifti_2_header::descrip[80]

any text you like.

Definition at line 91 of file nifti2.h.

◆ dim

int64_t nifti_2_header::dim[8]

Data array dimensions.

Definition at line 77 of file nifti2.h.

◆ dim_info

char nifti_2_header::dim_info

MRI slice ordering.

Definition at line 108 of file nifti2.h.

◆ intent_code

int nifti_2_header::intent_code

NIFTI_INTENT_* code.

Definition at line 106 of file nifti2.h.

◆ intent_name

char nifti_2_header::intent_name[16]

'name' or meaning of data.

Definition at line 107 of file nifti2.h.

◆ intent_p1

double nifti_2_header::intent_p1

1st intent parameter.

Definition at line 78 of file nifti2.h.

◆ intent_p2

double nifti_2_header::intent_p2

2nd intent parameter.

Definition at line 79 of file nifti2.h.

◆ intent_p3

double nifti_2_header::intent_p3

3rd intent parameter.

Definition at line 80 of file nifti2.h.

◆ magic

char nifti_2_header::magic[8]

MUST be valid signature.

Definition at line 74 of file nifti2.h.

◆ pixdim

double nifti_2_header::pixdim[8]

Grid spacings.

Definition at line 81 of file nifti2.h.

◆ qform_code

int nifti_2_header::qform_code

NIFTI_XFORM_* code.

Definition at line 93 of file nifti2.h.

◆ qoffset_x

double nifti_2_header::qoffset_x

Quaternion x shift.

Definition at line 98 of file nifti2.h.

◆ qoffset_y

double nifti_2_header::qoffset_y

Quaternion y shift.

Definition at line 99 of file nifti2.h.

◆ qoffset_z

double nifti_2_header::qoffset_z

Quaternion z shift.

Definition at line 100 of file nifti2.h.

◆ quatern_b

double nifti_2_header::quatern_b

Quaternion b param.

Definition at line 95 of file nifti2.h.

◆ quatern_c

double nifti_2_header::quatern_c

Quaternion c param.

Definition at line 96 of file nifti2.h.

◆ quatern_d

double nifti_2_header::quatern_d

Quaternion d param.

Definition at line 97 of file nifti2.h.

◆ scl_inter

double nifti_2_header::scl_inter

Data scaling: offset.

Definition at line 84 of file nifti2.h.

◆ scl_slope

double nifti_2_header::scl_slope

Data scaling: slope.

Definition at line 83 of file nifti2.h.

◆ sform_code

int nifti_2_header::sform_code

NIFTI_XFORM_* code.

Definition at line 94 of file nifti2.h.

◆ sizeof_hdr

int nifti_2_header::sizeof_hdr

MUST be 540

Definition at line 73 of file nifti2.h.

◆ slice_code

int nifti_2_header::slice_code

Slice timing order.

Definition at line 104 of file nifti2.h.

◆ slice_duration

double nifti_2_header::slice_duration

Time for 1 slice.

Definition at line 87 of file nifti2.h.

◆ slice_end

int64_t nifti_2_header::slice_end

Last slice index.

Definition at line 90 of file nifti2.h.

◆ slice_start

int64_t nifti_2_header::slice_start

First slice index.

Definition at line 89 of file nifti2.h.

◆ srow_x

double nifti_2_header::srow_x[4]

1st row affine transform.

Definition at line 101 of file nifti2.h.

◆ srow_y

double nifti_2_header::srow_y[4]

2nd row affine transform.

Definition at line 102 of file nifti2.h.

◆ srow_z

double nifti_2_header::srow_z[4]

3rd row affine transform.

Definition at line 103 of file nifti2.h.

◆ toffset

double nifti_2_header::toffset

Time axis shift.

Definition at line 88 of file nifti2.h.

◆ unused_str

char nifti_2_header::unused_str[15]

unused, filled with \0

Definition at line 109 of file nifti2.h.

◆ vox_offset

int64_t nifti_2_header::vox_offset

Offset into .nii file

Definition at line 82 of file nifti2.h.

◆ xyzt_units

int nifti_2_header::xyzt_units

Units of pixdim[1..4]

Definition at line 105 of file nifti2.h.


The documentation for this struct was generated from the following file: