output_nii {BSPBSS}R Documentation

Write a NIfTI file.

Description

This function saves a data matrix into a NIfTI file.

Usage

output_nii(X, nii, xgrid, file = NULL, std = TRUE, thres = 0)

Arguments

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.

Value

NIfTI-class object.


[Package BSPBSS version 1.0.5 Index]