randomAffineImage | R Documentation |
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" )
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 |
the transformed image and the transformation matrix
Avants BB
rr = randomAffineImage( ri( 1 ), "Rigid", sdAffine = 5 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.