writeNifti(image, file, template = NULL, datatype = "auto")
isImage
).updateNifti
if image
is an array."auto"
uses the R type or, for internal images, the
original datatype. Other possibilities are "float"
, "int16"
,
etc., which may be preferred to reduce file size. However, no checks are
done to ensure that the coercion maintains precision.readNifti
, updateNifti