randomAffineImage: transform an image by a random matrix

View source: R/patchMatch.R

randomAffineImageR Documentation

transform an image by a random matrix

Description

generates a random transformation matrix and its application to an image

Usage

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(s)

Avants BB

Examples

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

stnava/patchMatchR documentation built on March 23, 2022, 6:47 a.m.