In this recipe, you will learn how to rectify two images captured using a stereo camera with known parameters in such a way that, for the point (xl, yl) in the left image, the corresponding epipolar line in the right image is yr=yl and vice versa. This greatly simplifies feature matching and dense stereo estimation algorithms.
Aligning two views through stereo rectification
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...