R: Update an internal NIfTI-1 object using a template

updateNifti {RNifti} | R Documentation

## Update an internal NIfTI-1 object using a template

### Description

This function adds or updates the internal NIfTI-1 object for an array, using metadata from the template. The dimensions and, if available, pixel dimensions, from the `image` will replace those from the template.

### Usage

    updateNifti(image, template = NULL)

### Arguments

`image` | A numeric array.
`template` | An image, in any acceptable form (see `retrieveNifti`), or a named list of NIfTI-1 properties like that produced by `dumpNifti`. The default of `NULL` will have no effect.

### Value

A copy of the original `image`, with its internal image attribute set or updated appropriately.

### Author(s)

Jon Clayden <code@clayden.org>

[Package RNifti version 0.7.1 Index]