generates a random transformation matrix and its application to an image

randomAffineImage(
  image,
  transformType = c("Rigid", "Affine", "ScaleShear"),
  sdAffine = 0.1,
  seeder,
  fixedParams,
  interpolation = "nearestNeighbor"
)

Arguments

image

input image to be transformed

transformType

one of Rigid, Affine and ScaleShear

sdAffine

standard deviation parameter e.g. 0.15

seeder

random seed

fixedParams

optional fixed parameters for ANTs or ITK transformation

interpolation

optional interpolation choice

Value

the transformed image and the transformation matrix

Author

Avants BB

Examples

rr = randomAffineImage( ri( 1 ), "Rigid", sdAffine = 5 )