f.read.nifti.header {AnalyzeFMRI}R Documentation

read Nifti header file

Description

Reads the NIFTI image format .hdr header file into a list.

Usage

f.read.nifti.header(file)

Arguments

file The .hdr file to be read

Value

A list containing the information in the fields of the .hdr file.

file.name path name of the .img file
swap TRUE or FALSE variable indicating whether files are big or little endian
sizeof.hdr MUST be 348
data.type UNUSED
db.name UNUSED
extents UNUSED
session.error UNUSED
regular UNUSED
dim.info MRI slice ordering
dim vector of image dimensions. The first entry specifies the number of dimensions
intent.p1 1st intent parameter
intent.p2 2nd intent parameter
intent.p3 3rd intent parameter
intent.code NIFTI INTENT code
datatype integer indicator of data storage type for each voxel
bitpix the number of bits per voxel
slice.start First slice index
pixdim Grid spacings
vox.offset Offset into .nii file
scl.slope Data scaling: slope
scl.inter Data scaling: offset
slice.end Last slice index
slice.code Slice timing order
xyzt.units Units of pixdim[1..4]
cal.max Max display intensity
cal.min Min display intensity
slice.duration Time for 1 slice
toffset Time axis shift
glmax UNUSED
glmin UNUSED
descrip any text you like
aux.file auxiliary filename
qform.code NIFTI XFORM code
sform.code NIFTI XFORM code
quatern.b Quaternion b param
quatern.c Quaternion c param
quatern.d Quaternion d param
qoffset.x Quaternion x shift
qoffset.y Quaternion y shift
qoffset.z Quaternion z shift
srow.x 1st row affine transform
srow.y 2nd row affine transform
srow.z 3rd row affine transform
intent.name 'name' or meaning of data
magic MUST be "ni1" or "n+1"

Examples

f.read.nifti.header(system.file("example-nifti.hdr", package="AnalyzeFMRI"))

[Package AnalyzeFMRI version 1.1-10 Index]