generates a random transformation matrix in ants style. takes an initial transformation, its parameters and a seed that allows repeatability.

randomANTsTransformation(
  loctx,
  transformType = c("Rigid", "Affine", "ScaleShear"),
  sdAffine,
  idparams,
  fixParams,
  seeder,
  idim
)

Arguments

loctx

initial affine transformation to modify

transformType

one of Rigid, Affine and ScaleShear

sdAffine

standard deviation parameter e.g. 0.15

idparams

identity parameters

fixParams

fixed parameters for ANTs or ITK transformation

seeder

random seed

idim

spatial dimension of transformation

Value

the input transformation matrix with parameters generated randomly

Author

Avants BB

Examples