Description Usage Arguments Details Value Author(s) References See Also
These functions read in the header information and multidimensional array from a binary file in Analyze 7.5 format.
1 2 3 | read.analyze.hdr(fname, gzipped=TRUE, verbose=FALSE, warn=-1)
read.analyze.img(fname, gzipped=TRUE, signed=FALSE, verbose=FALSE,
warn=-1)
|
fname |
Pathname of the Analyze pair of files .img and .hdr without the suffix. |
gzipped |
Allows the import/export of compressed (.gz) files
(default = |
signed |
Only changed to |
verbose |
is a logical variable (default = |
warn |
is a number to regulate the display of warnings (default =
-1). See |
Both functions utilize the internal readBin
and rawToChar
command in order to efficiently extract information from a binary
file. The types of data are limited to 1- and 2-byte integers, 4-byte
floats and 8-byte doubles.
The read.analyze.hdr
function returns a list containing all the
fields from the header file. The function read.analyze.img
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
read.hdr
, read.img
,
read.nifti.hdr
, read.nifti.img
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.