nifti: Constructor for NIfTI

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/niftiS4.R

Description

Constructor for NIfTI class objects.

Usage

1
2
3
4
5
6
7
8
9
nifti(
  img = array(0, dim = rep(1, 4)),
  dim,
  datatype = 2,
  cal.min = NULL,
  cal.max = NULL,
  pixdim = NULL,
  ...
)

Arguments

img

is a multidimensional array of data.

dim

is the dimension of the data (default = missing).

datatype

is an integer that denotes the type of data contained in each voxel. See convert.datatype or the NIfTI documentation for more details.

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.

Value

An object of class nifti.

Author(s)

Brandon Whitcher bwhitcher@gmail.com

References

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

See Also

nifti, anlz, convert.datatype

Examples

1
2
3
4
5
6
options("niftiAuditTrail"=FALSE)

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

neuroconductor-devel/oro.nifti documentation built on May 6, 2021, 1:49 p.m.