Apply transform to spatial vector

applyAntsrTransformToVector(transform, vectors)

Arguments

transform

antsrTransform

vectors

a matrix where each row is a vector to transform

Value

array of coordinates

Examples

transform <- new("antsrTransform",
  precision = "float",
  type = "AffineTransform", dimension = 2
)
vec2 <- applyAntsrTransformToVector(transform, c(1, 2, 3))