read_analyze: Read Analyze Format Headers and Binary Image Files

Description Usage Arguments Details Value Author(s) References See Also

Description

These functions read in the header information and multidimensional array from a binary file in Analyze 7.5 format.

Usage

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)

Arguments

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.

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.

Value

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.

Author(s)

Brandon Whitcher, Volker Schmid

References

ANALYZE 7.5 http://www.mayo.edu/bir/PDF/ANALYZE75.pdf

See Also

read.hdr, read.img, read.nifti.hdr, read.nifti.img


dcemri documentation built on May 2, 2019, 5:27 p.m.