the data in the .img file of the pair, as an array (or a vector for 1D data). Note that the fields of
the header are not applied in any way: the data are returned exactly as they are stored in the file, in the
storage order of the format (the first dimension varies fastest, which is also the order used by R and by the
MGH/MGZ format), and the funused1 field that SPM uses as a scale factor is not applied (see
read.fs.volume.analyze if you want that).
Arguments
filepath
character string, the path to the .hdr file. The base name without the extension is accepted as
well, see analyze.pair.files.
header
optional ANALYZE 7.5 header as returned by read.analyze.header. It will be read from
the file automatically if left at NULL.
drop_empty_dims
logical, whether to drop empty dimensions in the returned data array, see
drop.