Aligning two views through stereo rectification

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.

Get OpenCV 3 Computer Vision with Python Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.