In this recipe, you will learn how filter keypoint matches using cross-check and ratio tests. These techniques are useful for filtering bad matches and improving the overall quality of established correspondences.
Finding reliable matches - cross-check and ratio test
Getting ready
Before you proceed with this recipe, you need to install the OpenCV version 3.3 (or greater) Python API package.
How to do it...
You need to complete the following steps:
- Import the necessary modules:
import cv2
import matplotlib.pyplot as plt
- Load the test images:
img0 = cv2.imread(&apos...