output_nii {BSPBSS} | R Documentation |
This function saves a data matrix into a NIfTI file.
output_nii(X, nii, xgrid, file = NULL, std = TRUE, thres = 0)
X |
Data matrix with n rows (sample) and p colums (pixel). |
nii |
a reference NIfTI-class object, representing a image with p voxels. |
xgrid |
Cordinate matrix with p rows (voxel) and d columns (dimension). |
file |
The name of the file to be saved. |
std |
If TRUE, standarize each row of X. |
thres |
Quantile to threshold each row of X. |
NIfTI-class object.