To conclude this chapter, it is finally necessary to say a few words about descriptor matching.
Let and
be two images to be analyzed, and let
and
be two points, possibly keypoints, identified in the first and second images, respectively.
To determine whether these two image points represent the same point, normally observed from different viewpoints and therefore affected by affine transformations (translations, scale changes, and rotations), homographies, and possibly changes in illumination, it is necessary to define some form of metric
for performing the comparison.
A specific metric can be defined for each descriptor.
In general, the most widely used metrics are L1 (Manhattan, SAD) and L2 (Euclidean, SSD).
Since more than one point will certainly be extracted from each image, a search must be performed, and each point in the first image is associated only with the point in the second image having the minimum distance according to the selected metric:
| (8.1) |
Usually, to reduce the number of incorrect matches, an association is accepted only if the metric is below a given threshold and the ratio between the best and second-best matches is below a second, uniqueness threshold.
Finally, after finding , the best match for point
in the second image, it can be verified that
does not have better matches in the first image.
Paolo medici