Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

convert_nifti

Convert NIfTI Codes


Description

Codes that appear in the ANALYZE header are mapped to meaningful character strings.

Usage

convert.bitpix(bitpix = NULL)

convert.datatype(datatype.code = NULL)

convert.intent(intent.code = NULL)

convert.form(form.code)

convert.units(units, inverse = FALSE)

convert.slice(slice.code)

Arguments

bitpix

is the bit-per-pixel code.

datatype.code

defines data type.

intent.code

is the NIfTI intent code.

form.code

is the (x,y,z) coordinate system.

units

is the units of pixdim[1..4].

inverse

is a logical value that denotes the direction of unit conversion.

slice.code

is the slice timing order.

Details

switch statements are used to map a numeric code to the appropriate string.

Value

A character string.

Author(s)

Brandon Whitcher bwhitcher@gmail.com

References

Neuroimaging Informatics Technology Initiative (NIfTI)
http://nifti.nimh.nih.gov/

Examples

##  4 = SIGNED_SHORT
convert.datatype.anlz(4)
## 16 = FLOAT
convert.datatype.anlz(16)
##  2 = "saggital unflipped"
convert.orient.anlz(2)
##  4 = "coronal flipped"
convert.orient.anlz(4)

oro.nifti

Rigorous - 'NIfTI' + 'ANALYZE' + 'AFNI' : Input / Output

v0.11.0
BSD_3_clause + file LICENSE
Authors
Brandon Whitcher [aut, cre], Volker Schmid [aut], Andrew Thornton [aut], Karsten Tabelow [ctb], Jon Clayden [ctb], John Muschelli [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.