Description Usage Arguments Details Value Author(s) References See Also
These functions read in the header information and/or multidimensional array from a binary file in ANALYZE or NIfTI formats.
1 2 3 |
fname |
is the pathname of the Analyze pair of files (.img and .hdr) or the single NIfTI file (.nii). |
verbose |
is a logical variable (default = |
X,Y,Z,T |
are the dimenisions (three spatial and one temporal) for the header file. |
datatype |
is a character string describing the image format. Valid character strings include: “uint1”, “uint8”, “int16”, “int32”, “float32”, “float64”. |
type |
is a character string declaring either the Analyze or
NIfTI format (default = |
warn |
is a number to regulate the display of warnings (default =
-1). See |
... |
is for additional parameters that may be passed to
|
The function read.hdr
decides whether the input file should be
read using read.analyze.hdr
or read.nifti.hdr
and if
compression is required. A similar description is valid for
the read.img
function. They are essentially “wrapper”
functions for calls to the functions that are specific to the Analyze
or NIfTI formats.
The make.hdr
function provides an empty header, in Analyze or
NIfTI format, to use for data exportation. Note, it is probably
better to read in a pre-existing header file and modify it as
required.
The read.hdr
function returns a list containing all the fields
from the header file. The read.img
function returns a
multidimensional array taken from the binary imaging data.
Brandon Whitcher, Volker Schmid
ANALYZE 7.5 http://www.mayo.edu/bir/PDF/ANALYZE75.pdf
NIfTI-1 http://nifti.nimh.nih.gov/
read.analyze.hdr
, read.nifti.hdr
,
read.analyze.img
, read.nifti.img
,
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.