Read Analyze {dcemri} | R Documentation |
These functions read in the header information and multidimensional array from a binary file in Analyze 7.5 format.
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 = TRUE ). |
signed |
Only changed to FALSE when reading in unsigned
single-byte integers. |
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. |
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