dumpNifti: Dump the contents of an internal NIfTI-1 object

Description Usage Arguments Value Author(s) References Examples

View source: R/nifti.R

Description

This function extracts the contents of an internal NIfTI-1 object into an R list. No processing is done to the elements.

Usage

1
2
3
4
dumpNifti(image)

## S3 method for class 'niftiHeader'
print(x, ...)

Arguments

image

An image, in any acceptable form (see retrieveNifti).

x

A "niftiHeader" object.

...

Ignored.

Value

For dumpNifti, a list of class "niftiHeader", with named components corresponding to the elements in a raw NIfTI-1 file.

Author(s)

Jon Clayden <[email protected]>

References

The NIfTI-1 standard (http://www.nitrc.org/docman/view.php/26/64/nifti1.h).

Examples

1
2
3
4
dumpNifti(system.file("extdata", "example.nii.gz", package="RNifti"))

# Default header for a standard R array
dumpNifti(array(0L, dim=c(10,10)))

RNifti documentation built on Sept. 14, 2017, 5:02 p.m.