To conclude this chapter, we briefly discuss descriptor comparison.
Let and
be two images to be analyzed, and let
and
be two points, likely keypoints, detected in the first and second images, respectively.
To determine whether these two image points represent the same physical point—which is typically observed from different viewpoints and therefore affected by affine transformations (translations, scale changes, rotations), homographies, and possibly changes in illumination—we need to define some form of metric
for comparison.
A particular metric can be defined for each descriptor.
The most widely used metrics are the L1 (Manhattan, SAD) and L2 (Euclidean, SSD) distances.
Since more than one point will be extracted from each image, the points must be scanned, and each point in the first image is matched only to the point in the second image with the smallest distance under the selected metric:
| (8.1) |
To reduce the number of incorrect matches, a match is usually accepted only if the distance 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, we can check whether
has a better match in the first image.
Paolo medici