| dumpNifti {RNifti} | R Documentation |
This function extracts the contents of an internal NIfTI-1 object into an R list. No processing is done to the elements.
dumpNifti(image) ## S3 method for class 'niftiHeader' print(x, ...)
image |
An image, in any acceptable form (see
|
x |
A |
... |
Ignored. |
For dumpNifti, a list of class "niftiHeader", with
named components corresponding to the elements in a raw NIfTI-1 file.
Jon Clayden <code@clayden.org>
The NIfTI-1 standard (http://www.nitrc.org/docman/view.php/26/64/nifti1.h).
dumpNifti(system.file("extdata", "example.nii.gz", package="RNifti"))
# Default header for a standard R array
dumpNifti(array(0L, dim=c(10,10)))