These functions read in the header information and multi-dimensional array from a binary file in Analyze 7.5 format.
readANALYZE(fname, SPM = FALSE, verbose = FALSE, warn = -1)
fname | Pathname of the Analyze pair of files .img and .hdr without the suffix. |
---|---|
SPM | is a logical variable (default = |
verbose | is a logical variable (default = |
warn | is a number to regulate the display of warnings (default = -1).
See |
An object of class anlz
is produced.
The internal functions readBin
and rawToChar
are utilized 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.
ANALYZE 7.5
http://eeg.sourceforge.net/ANALYZE75.pdf
Brandon Whitcher bwhitcher@gmail.com,
Volker Schmid
volkerschmid@users.sourceforge.net
## avg152T1
anlz.path <- system.file("anlz", package="oro.nifti")
mni152 <- readANALYZE(file.path(anlz.path, "avg152T1"))
image(mni152, oma=rep(2,4))
orthographic(mni152, oma=rep(2,4))