updateNifti: 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
template
An image, in any acceptable form (see
isImage
). The default of NULL
will have no effect. Value
- A copy of the original
image
, with its internal image
attribute set or updated appropriately.