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

dumpNifti {RNifti} | R Documentation

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

    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://www.nitrc.org/docman/view.php/26/64/nifti1.h).

### Examples

    dumpNifti(system.file("extdata", "example.nii.gz", package="RNifti"))

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

[Package RNifti version 0.7.0 Index]