Learn R Programming

oro.nifti (version 0.1.4)

nifti: Constructor for NIfTI

Description

Constructor for NIfTI class objects.

Usage

nifti(img = array(0, dim = rep(1, 4)), dim, datatype = 2, cal.min = NULL,
      cal.max = NULL, pixdim = NULL, ...)
is.nifti(x)

Arguments

img
is a multidimensional array of data.
dim
is the dimension of the data (default = missing).
datatype
...
cal.min
allows user-specified minimum value in the array (visualization purposes only).
cal.max
allows user-specified minimum value in the array (visualization purposes only).
pixdim
allows user-specified pixel dimension vector (length = 8).
...
allows for additional slots to be specified.
x
is an object to be checked.

Value

  • An object of class nifti.

References

NIfTI-1 http://nifti.nimh.nih.gov/

See Also

nifti, anlz

Examples

Run this code
nim <- nifti() # default
nim
nim <- nifti(datatype=4) # 2-byte integers
nim

Run the code above in your browser using DataLab