with E. Trucco, A. Verri, L. Irsara
The word rectification alone is used in the fields of Computer Vision, Photogrammetry and Image processing with several different meanings. For this reason I shall precede it with an adjective in order to disambiguate. This page is about epipolar (or stereoscopic) rectification. The removal of perspective effects on a single image is called perspective rectification (or control, or correction) and is implemented in this simple Perspective Rectification Toolkit
Given a pair of stereo images, epipolar rectification determines a transformation of each image plane such that pairs of conjugate epipolar lines become collinear and parallel to one of the image axes. The rectified images can be thought of as acquired by a new stereo rig, obtained by rotating the original cameras. The important advantage of rectification is that computing stereo correspondences is reduced to a 1-D search problem along the horizontal raster lines of the rectified images. Two techniques are available:
The MATLAB Rectification Toolkit includes both the calibrated and uncalibrated options. It requires some functions contained in the MATLAB Computer Vision Toolkit by A. Fusiello and VLfeat toolbox by A. Vedaldi.
(*) These two matrices are obtained from calibration . You might want to download the Calibration Toolkit as well.