Constructor for NIfTI class objects.
nifti(
img = array(0, dim = rep(1, 4)),
dim,
datatype = 2,
cal.min = NULL,
cal.max = NULL,
pixdim = NULL,
...
)
img | is a multidimensional array of data. |
---|---|
dim | is the dimension of the data (default = |
datatype | is an integer that denotes the type of data contained in
each voxel. See |
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. |
An object of class nifti
.
NIfTI-1
http://nifti.nimh.nih.gov/
Brandon Whitcher bwhitcher@gmail.com
options("niftiAuditTrail"=FALSE)
nim <- nifti() # default
nim
#> NIfTI-1 format
#> Type : nifti
#> Data Type : 2 (UINT8)
#> Bits per Pixel : 8
#> Slice Code : 0 (Unknown)
#> Intent Code : 0 (None)
#> Qform Code : 0 (Unknown)
#> Sform Code : 0 (Unknown)
#> Dimension : 1 x 1 x 1 x 1
#> Pixel Dimension : 1 x 1 x 1 x 1
#> Voxel Units : Unknown
#> Time Units : Unknown
nim <- nifti(datatype=4) # 2-byte integers
nim
#> NIfTI-1 format
#> Type : nifti
#> Data Type : 4 (INT16)
#> Bits per Pixel : 16
#> Slice Code : 0 (Unknown)
#> Intent Code : 0 (None)
#> Qform Code : 0 (Unknown)
#> Sform Code : 0 (Unknown)
#> Dimension : 1 x 1 x 1 x 1
#> Pixel Dimension : 1 x 1 x 1 x 1
#> Voxel Units : Unknown
#> Time Units : Unknown