patchMatch: patch match two images

View source: R/patchMatch.R

patchMatchR Documentation

patch match two images

Description

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.

Usage

patchMatch(
  movingImage,
  fixedImage,
  fixedImageMask,
  finalTransform = "Rigid",
  fixedPatchRadius = 31,
  initialMap,
  visualize = FALSE,
  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.

fixedImageMask

defines the object of interest in the fixedImage

finalTransform

defaults to "Rigid" but can be any antsRegistration.

fixedPatchRadius

integer greater than zero.

initialMap

this is the output of a call to antsRegistration. if it is not present, a quick SyN map will be computed.

visualize

boolean, will plot to screen

verbose

boolean, will print to screen

Value

data frame of corresponding points

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 )


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