Dump the contents of an internal NIfTI-1 object

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 <code@clayden.org>

References

The NIfTI-1 standard (http://nifti.nimh.nih.gov/nifti-1).

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)))