Create and initialize an antsrTransform

createAntsrTransform(
  type = "AffineTransform",
  precision = "float",
  dimension = 3,
  matrix = NA,
  offset = NA,
  center = NA,
  translation = NA,
  parameters = NA,
  fixed.parameters = NA,
  displacement.field = NULL,
  supported.types = FALSE
)

Arguments

type

type of transform

  • AffineTransform

  • CenteredAffineTransform

  • Euler2DTransform

  • Euler3DTransform

  • Rigid2DTransform

  • QuaternionRigidTransform

  • Similarity2DTransform

  • CenteredSimilarity2DTransform

  • Similarity3DTransform

  • CenteredRigid2DTransform

  • CenteredEuler3DTransform

  • DisplacementFieldTransform

precision

numerical precision

dimension

spatial dimension of transform

matrix

matrix for linear transforms

offset

offset for linear transforms

center

center for linear transforms

translation

translation for linear transforms

parameters

array of parameters

fixed.parameters

array of fixed parameters

displacement.field

multichannel antsImage for non-linear transform

supported.types

flag that returns array of possible transforms types

Value

antsrTransform or list of transform types

Examples

trans <- c(3, 4, 5)
tx <- createAntsrTransform(type = "Euler3DTransform", translation = trans)