matchedPatches.Rd
provides the matched patches given output of patchMatch
matchedPatches( movingImage, fixedImage, patchMatchOutput, fixedPatchRadius = 31, 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. |
patchMatchOutput | the data frame output from |
fixedPatchRadius | integer greater than zero. |
verbose | boolean, will print to screen. |
lists of corresponding patches
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 ) myMatches = matchedPatches( img2, img, match, fixedPatchRadius = 3 )