newMriImageMetadataFromTemplate(metadata, imageDims = NA, voxelDims = NA, voxelUnit = NA, source = "internal", datatype = NA, origin = NA, endian = NA)
MriImageMetadata
object.getDataTypeByNiftiCode
.MriImageMetadata
object, like the one specified in the first argument, but with the specified fields replaced by new values. Any field with value NA
(the default except for source
) will be taken from the original metadata object.MriImageMetadata
, MriImage
, getDataTypeByNiftiCode
.