pre_nii {BSPBSS} | R Documentation |
This function transforms a NIfTI-class object into a matrix.
pre_nii(nii, mask)
nii |
4D NIfTI-class object with dimensions x,y,z and t. Can be read from NIfTI file with |
mask |
Mask variable, also in NIfTI format. |
List containing the data matrix with t rows and x*y*z colums (voxels), and the coordinates of the voxels.