matchedPatches: extract matched patches between two images

View source: R/patchMatch.R

matchedPatchesR Documentation

extract matched patches between two images

Description

provides the matched patches given output of patchMatch

Usage

matchedPatches(
  movingImage,
  fixedImage,
  patchMatchOutput,
  fixedPatchRadius = 31,
  verbose = FALSE
)

Arguments

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 patchMatch.

fixedPatchRadius

integer greater than zero.

verbose

boolean, will print to screen.

Value

lists of corresponding patches

Author(s)

Avants BB

Examples


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 )


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