Learn R Programming

BSPBSS (version 1.0.6)

pre_nii: Transforms NIfTI to matrix

Description

This function transforms a NIfTI-class object into a matrix.

Usage

pre_nii(nii, mask)

Value

List containing the data matrix with t rows and x*y*z colums (voxels), and the coordinates of the voxels.

Arguments

nii

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.

mask

Mask variable, also in NIfTI format.