Public Member Functions | Public Attributes | List of all members
mirtk::NiftiImageInfo Struct Reference

#include <NiftiImageInfo.h>

Collaboration diagram for mirtk::NiftiImageInfo:
Collaboration graph

Public Member Functions

 NiftiImageInfo (const char *=nullptr)
 Constructor, reads header from NIfTI image file.
 

Public Attributes

string aux_file
 auxiliary filename
 
int byteorder
 byte order on disk (MSB_ or LSB_FIRST)
 
double cal_max
 calibration parameter, maximum
 
double cal_min
 calibration parameter, minimum
 
int datatype
 type of data in voxels: DT_* code
 
string descrip
 optional text to describe dataset
 
double dt
 grid spacings
 
double du
 grid spacings
 
double dv
 grid spacings
 
double dw
 grid spacings
 
double dx
 grid spacings
 
double dy
 grid spacings
 
double dz
 grid spacings
 
string fname
 header filename (.hdr or .nii)
 
string iname
 image filename (.img or .nii)
 
int iname_offset
 offset into iname where data starts
 
int intent_code
 statistic type (or something)
 
string intent_name
 optional description of intent data
 
double intent_p1
 intent parameters
 
double intent_p2
 intent parameters
 
double intent_p3
 intent parameters
 
int nbyper
 bytes per voxel, matches datatype
 
int ndim
 last dimension greater than 1 (1..7)
 
int nifti_type
 
int nt
 dimensions of grid array
 
int nu
 dimensions of grid array
 
int nv
 dimensions of grid array
 
size_t nvox
 number of voxels = nx*ny*nz*...*nw
 
int nw
 dimensions of grid array
 
int nx
 dimensions of grid array
 
int ny
 dimensions of grid array
 
int nz
 dimensions of grid array
 
int qform_code
 codes for (x,y,z) space meaning
 
Matrix qto_ijk
 qform: transform (x,y,z) to (i,j,k)
 
Matrix qto_xyz
 qform: transform (i,j,k) to (x,y,z)
 
double scl_inter
 scaling parameter - intercept
 
double scl_slope
 scaling parameter - slope
 
int sform_code
 codes for (x,y,z) space meaning
 
int slice_code
 code for slice timing pattern
 
double slice_duration
 time between individual slices
 
int slice_end
 index for end of slices
 
int slice_start
 index for start of slices
 
Matrix sto_ijk
 sform: transform (x,y,z) to (i,j,k)
 
Matrix sto_xyz
 sform: transform (i,j,k) to (x,y,z)
 
int swapsize
 swap unit in image data (might be 0)
 
int time_units
 dt units: NIFTI_UNITS_* code
 
double toffset
 time coordinate offset
 
int xyz_units
 dx,dy,dz units: NIFTI_UNITS_* code
 

Detailed Description

NIfTI image header information.

Note
Only contains most commonly used entries of nifti_image struct and uses MIRTK types for non-builtin types.

Definition at line 141 of file NiftiImageInfo.h.

Member Data Documentation

§ nifti_type

int mirtk::NiftiImageInfo::nifti_type

0==ANALYZE, 1==NIFTI-1 (1 file), 2==NIFTI-1 (2 files), 3==NIFTI-ASCII (1 file)

Definition at line 178 of file NiftiImageInfo.h.


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