powered by
This function transforms a NIfTI-class object into a matrix.
pre_nii(nii, mask)
List containing the data matrix with t rows and x*y*z colums (voxels), and the coordinates of the voxels.
4D NIfTI-class object with dimensions x,y,z and t. Can be read from NIfTI file with readNIfTI function from the package oro.nifti.
readNIfTI
oro.nifti
Mask variable, also in NIfTI format.