libfs
Header-only C++11 library for accessing FreeSurfer neuroimaging data
Public Attributes | List of all members
fs::Nifti1Header Struct Reference

NIfTI-1 header structure (348 bytes, packed). More...

#include <libfs.h>

Public Attributes

int32_t sizeof_hdr
 must be 348
 
char data_type [10]
 unused
 
char db_name [18]
 unused
 
int32_t extents
 unused
 
int16_t session_error
 unused
 
char regular
 unused
 
char dim_info
 MRI slice ordering.
 
int16_t dim [8]
 dim[0]=ndim, dim[1..7]=dimensions
 
float intent_p1
 intent parameter 1
 
float intent_p2
 intent parameter 2
 
float intent_p3
 intent parameter 3
 
int16_t intent_code
 NIfTI intent code.
 
int16_t datatype
 NIfTI data type code.
 
int16_t bitpix
 bits per voxel
 
int16_t slice_start
 first slice index
 
float pixdim [8]
 voxel dimensions (mm)
 
float vox_offset
 byte offset to data from header start
 
float scl_slope
 scaling slope
 
float scl_inter
 scaling intercept
 
int16_t slice_end
 last slice index
 
char slice_code
 slice timing code
 
char xyzt_units
 units for pixdim[] dimensions
 
float cal_max
 calibrated max
 
float cal_min
 calibrated min
 
float slice_duration
 slice timing duration
 
float toffset
 time offset
 
int32_t glmax
 global max (unused)
 
int32_t glmin
 global min (unused)
 
char descrip [80]
 description
 
char aux_file [24]
 auxiliary filename
 
int16_t qform_code
 quaternion transform code (>0 = valid)
 
int16_t sform_code
 affine transform code (>0 = valid)
 
float quatern_b
 quaternion b param
 
float quatern_c
 quaternion c param
 
float quatern_d
 quaternion d param
 
float qoffset_x
 quaternion x shift
 
float qoffset_y
 quaternion y shift
 
float qoffset_z
 quaternion z shift
 
float srow_x [4]
 affine transform row x
 
float srow_y [4]
 affine transform row y
 
float srow_z [4]
 affine transform row z
 
char intent_name [16]
 intent name
 
char magic [4]
 "n+1\0" (single file) or "ni1\0" (header/img pair)
 

Detailed Description

NIfTI-1 header structure (348 bytes, packed).


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