|
NVIDIA 2D Image And Signal Performance Primitives (NPP)
Version 11.5.0.*
|
Primitives for computing the proximity measure between a source image and a template image. More...
Modules | |
| SqrDistanceFull_Norm | |
| Primitives for computing the normalized Euclidean distance between two images with full mode. |
|
| SqrDistanceSame_Norm | |
| Primitives for computing the normalized Euclidean distance between two images with same mode. |
|
| SqrDistanceValid_Norm | |
| Primitives for computing the normalized Euclidean distance between two images with valid mode. |
|
| CrossCorrFull_Norm | |
| Primitives for computing the normalized cross correlation between two images with full mode. |
|
| CrossCorrSame_Norm | |
| Primitives for computing the normalized cross correlation between two images with same mode. |
|
| CrossCorrValid_Norm | |
| Primitives for computing the normalized cross correlation between two images with valid mode. |
|
| CrossCorrValid | |
| Primitives for computing the cross correlation between two images with valid mode. |
|
| CrossCorrFull_NormLevel | |
| Primitives for computing the normalized cross correlation coefficient between two images with full mode. |
|
| CrossCorrSame_NormLevel | |
| Primitives for computing the normalized cross correlation coefficient between two images with same mode. |
|
| CrossCorrValid_NormLevel | |
| Primitives for computing the normalized cross correlation coefficient between two images with valid mode. |
|
Primitives for computing the proximity measure between a source image and a template image.
There are basically two approaches to compute the proximity measure for template matching, Euclidean distance and the cross correlation.
(
) and a template image
(
), the Euclidean distance
between two images at pixel in row
and column
is computed as (
stands for source image and
for template image for short):
is calculated as:
is affected by the brightness of the images which may vary due to the lighting and exposure conditions. Therefore, NPP computes the cross correlation coefficient to circumvent this dependence. This is typically done at every step by subtracting the mean from every pixel value, i.e.,
NPP computes the normalized values of Euclidean distance, cross correlation and the cross correlation coefficient.
is defined as:
is defined as:
and
denote the auto correlation of the source image and the template image individually. They are defined as:
is calculated as:
and
are defined as:
The Euclidean distance and the cross correlation are categorized into three types, full, same, and valid.
.
.
.