- file
A character vector of file names.
- internal
Logical value. If FALSE
(the default), an array
of class "niftiImage"
, containing the image pixel or voxel values,
will be returned. If TRUE
, the return value will be an object of
class "internalImage"
, which contains only minimal metadata about
the image. Either way, the return value has an attribute which points to a
C data structure containing the full image.
- volumes
An integer vector giving the volumes to read (counting along
all dimensions beyond the third jointly), or NULL
, the default, in
which case every volume is read. This cannot currently be set differently
for each file read.
- json
A string determining whether any BIDS-style JSON sidecar file is
read in alongside the image(s). If "ignore"
, JSON files are
ignored; if "read"
, they are read and attributes attached to the
image using their names in the file; if "convert"
, element names
are additionally converted to the down-cased naming convention of the
tractor.base
package. The jsonlite
package is required for
any reading of JSON.