Apply transform to point, vector or antsImage data

applyAntsrTransform(transform, data, dataType = "point", reference = NULL, ...)

Arguments

transform

antsrTransform

data

data to transform

dataType

data type for non-antsImage data. Either "point" or "vector"

reference

target space for transforming an antsImage

...

options passed to `applyAntsrTransformToImage`

Value

transformed data

Examples

tx <- createAntsrTransform(dimension = 2, precision = "float", type = "AffineTransform")
params <- getAntsrTransformParameters(tx)
setAntsrTransformParameters(tx, params * 2)
pt2 <- applyAntsrTransform(tx, c(1, 2, 3))