Learn R Programming

tractor.base (version 2.3.0)

newMriImageMetadataFromTemplate: Duplicates an MriImageMetadata object, possibly with modification

Description

Duplicates an MriImageMetadata object, possibly with modification.

Usage

newMriImageMetadataFromTemplate(metadata, imageDims = NA, voxelDims = NA, voxelUnit = NA,
                                  datatype = NA, origin = NA, tags = NA)

Arguments

metadata
An existing MriImageMetadata object.
imageDims
Image dimensions.
voxelDims
Voxel dimensions.
voxelUnit
Voxel dimension unit, usually "mm".
datatype
Image data type. See getDataTypeByNiftiCode.
origin
Coordinate origin.
tags
A list containing elements keys and values, specifying tags associated with the image.

Value

  • An 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.

References

Please cite the following reference when using TractoR in your work:

J.D. Clayden, S. Muñoz Maniega, A.J. Storkey, M.D. King, M.E. Bastin & C.A. Clark (2011). TractoR: Magnetic resonance imaging and tractography with R. Journal of Statistical Software 44(8):1-18. http://www.jstatsoft.org/v44/i08/.

See Also

MriImageMetadata, MriImage, getDataTypeByNiftiCode.