Skip to contents

computeECC computes the Enhanced Correlation Coefficient (ECC) value between two images.

Usage

computeECC(template, image, mask = NULL)

Arguments

template

A grayscale Image object.

image

A grayscale Image object of the same dimensions as template.

mask

A binary Image object of the same dimensions as template. Only the pixels of image where mask is nonzero are used in the computation. If NULL, all pixels are used.

Value

A numerical value.

References

Evangelidis, G. D., and Psarakis, E. Z. (2008). Parametric image alignment using enhanced correlation coefficient maximization. IEEE Trans. Pattern Anal. Mach. Intell. 30, 1858–1865. doi:10.1109/TPAMI.2008.113.

See also

Author

Simon Garnier, garnier@njit.edu

Examples

file1 <- system.file("sample_img/balloon1.png", package = "Rvision")
file2 <- system.file("sample_img/balloon2.png", package = "Rvision")
balloon1 <- changeColorSpace(image(file1), "GRAY")
balloon2 <- changeColorSpace(image(file2), "GRAY")
computeECC(balloon1, balloon2)
#> [1] 0.6931989