Learn R Programming

RNiftyReg (version 2.0.0)

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

image
A numeric array.
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.