patchMatch.Rd
High-level function for patch matching that makes many assumptions and therefore minimizes the number of parameters the user needs to choose. This prioritizes usability at the cost of optimality.
patchMatch( movingImage, fixedImage, fixedImageMask, finalTransform = "Rigid", fixedPatchRadius = 31, initialMap, visualize = FALSE, verbose = FALSE )
movingImage | input image from which we extract patches that are transformed to the space of the fixed image |
---|---|
fixedImage | input image that provides the fixed reference domain. |
fixedImageMask | defines the object of interest in the fixedImage |
finalTransform | defaults to "Rigid" but can be any |
fixedPatchRadius | integer greater than zero. |
initialMap | this is the output of a call to |
visualize | boolean, will plot to screen |
verbose | boolean, will print to screen |
data frame of corresponding points
Avants BB
library(ANTsR) img <- ri( 1 ) %>% iMath( "Normalize" ) img2 <- ri( 2 ) %>% iMath( "Normalize" ) mask = randomMask( getMask( img ), 2 ) match = patchMatch( img2, img, mask, fixedPatchRadius = 3 )