comparison: Compute correlation for two images

Description Usage Arguments Value Examples

Description

Given two processed (and possibly rotated) images, compute the cross-correlation function and return the largest correlation value and its associated translation parameters.

Usage

1
comparison(image1, image2)

Arguments

image1

first image matrix

image2

second image matrix. Note that the two matrices have to be the same size.

Value

A list with three items: 1) maximum correlation taking into account all possible translations, 2) dx, the horizontal translation corresponding to the maximum correlation, and 3) dy, the vertical translation corresponding to the maximum correlation.

Examples

1
2
3
4
## Not run: 
comparison(processedExample, processedExample2)

## End(Not run)

xhtai/cartridges documentation built on June 1, 2019, 2:58 p.m.