Image.ncc#
- Image.ncc(image2: Any) float[source]#
Normalised cross correlation
- Parameters:
image2 (
Image) – second image- Raises:
ValueError – image2 shape is not equal to self
- Returns:
normalised cross correlation
- Return type:
scalar
Returns an image similarity measure which is the normalized cross-correlation between the image and
image2. The result is a scalar in the interval -1 (non match) to 1 (perfect match) that indicates similarity.Examples
Note
The
nccsimilarity measure is invariant to scale changes in image intensity.
References
P. Corke, Robotics, Vision & Control for Python, Springer, 2023, Section 11.5.2.