Rectify a pair of stereo images
[
returns
undistorted and rectified versions of J1
,J2
]
= rectifyStereoImages(I1
,I2
,stereoParams
)I1
and I2
input
images using the stereo parameters stored in the stereoParams
object.
Stereo image rectification projects images onto a common image plane in such a way that the
corresponding points have the same row
coordinates. This image projection makes the image
appear as though the two cameras are parallel. Use
the disparityBM
or disparitySGM
functions to compute a
disparity map from the rectified images for 3-D
scene reconstruction.
[
uses
additional options specified by one or more J1
,J2
]
= rectifyStereoImages(___,Name,Value
)Name,Value
pair
arguments.
The Computer Vision Toolbox™ rectification algorithm requires that the epipole for each image lie outside of the image. If the epipole lies within the image, you can first transform the images into polar coordinates as described in the rectification method proposed by Marc Pollefeys, Reinhard Koch, and Luc Van Gool [2].
[1] G. Bradski and A. Kaehler, Learning OpenCV : Computer Vision with the OpenCV Library. Sebastopol, CA: O'Reilly, 2008.
Camera
Calibrator | disparityBM
| disparitySGM
| estimateCameraParameters
| estimateUncalibratedRectification
| reconstructScene
| Stereo Camera
Calibrator | stereoParameters