mask: array or nifti-object containing the mask. If set this replaces the mask defined by argument level.
setmask: if TRUE create a brain mask
indx: index vector for subcube definition
indy: index vector for subcube definition
indz: index vector for subcube definition
avoidnegs: if TRUE change the mean to avoid negative image intensities
Details
This function can be used in connection with readNifti from package RNiftyReg to read large fMRI series from nifti files. The resulting fmridata-object stores the image data as 2 byte integer in raw format, in contrast for the 4 byte real used with other functions.