Learn R Programming

dcemriS4 (version 0.20.2)

readNIfTI: readNIfTI

Description

These functions read in the header information and multidimensional array from a binary file in NIfTI-1 format into a nifti-class object.

Usage

readNIfTI(fname, verbose=FALSE, warn=-1, reorient=TRUE, call=NULL)
read.nifti.content(fname, onefile=TRUE, gzipped=TRUE, verbose=FALSE,
                   warn=-1, reorient=FALSE, call=NULL)

Arguments

fname
is the file name of the NIfTI file(s).
verbose
is a logical variable (default = FALSE) that allows text-based feedback during execution of the function.
warn
is a number to regulate the display of warnings (default = -1). See options for more details.
reorient
onefile
(logical) allows the scanning of single-file format (.nii) or dual-file format (.hdr and .img) NIfTI files (default = TRUE).
gzipped
(logical) allows the importation of compressed (.gz) files (default = TRUE).
call

Value

  • ...

Details

The readNIfTI function utilizes internal methods readBin and readChar to efficiently extract information from the binary file(s).

Current acceptable data types include [object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

References

NIfTI-1 http://nifti.nimh.nih.gov/

See Also

readANALYZE

Examples

Run this code
nim <- readNIfTI(system.file("nifti/avg152T1_LR_nifti.nii.gz",
                             package="dcemriS4")[1])
image(nim)
orthographic(nim)

Run the code above in your browser using DataLab