as.big.nifti4d: Create a big...

as.big.nifti4dR Documentation

Create a big...

Description

Create a big.nifti4d object

Usage

as.big.nifti4d(x)               # when x is a nifti object or nifti4d object
as.big.nifti4d(x, header)       # when x is an array
as.big.nifti4d(x, header, mask) # when x is a matrix or big.matrix

Arguments

x

4d nifti, nifti4d, 4d array, matrix, or big.matrix

header

list of header attributes (required when x is an array or matrix or big.matrix)

mask

logical vector specifying which voxels from 3D image are specified with x (required when x is a matrix or big.matrix)

...

Additional arguments that will be passed when creating a big.matrix

Value

big.nifti4d object

Author(s)

Zarrar Shehzad

See Also

as.big.nifti4d-methods

Examples

as.big.nifti4d(array(0, c(10,10,10,10)), create.header())
as.big.nifti4d(nifti(0, dim=c(10,10,10,10)))   # should give same thing as above

czarrar/niftir documentation built on April 19, 2022, 3:35 a.m.