calculateCCFmaxSearch: Compute maximum correlation for two images, taking into...

Description Usage Arguments Value

View source: R/additions.R

Description

This is an updated version of calculateCCFmax(). It normalizes the images after rotation (mean 0, variance 1), and uses a slightly different grid search to reduce runtime.

Usage

1
calculateCCFmaxSearch(image1, image2)

Arguments

image1

first image matrix

image2

second image matrix. The two images do not need to be the same size.

Value

A list with four items: 1) maximum correlation taking into account many possible rotations and translations of the second image, 2) the corresponding dx, the horizontal translation, 3) dy, the vertical translation, and 4) theta, the corresponding rotation angle.


xhtai/cartridges3D documentation built on March 1, 2020, 8:57 p.m.