If corresponding points in the two images of a stereo pair lay on the same image row (that is, had the same coordinate), highly optimized code could be used to find correspondences (LZ99) and obtain dense disparity images.
A stereo configuration in which corresponding points lie on the same row in both images is obtained when the cameras have the same intrinsic parameters and their optical axes are perpendicular to the baseline. If the baseline is parallel to the axis, this configuration corresponds to a pair of cameras with
,
, and identical pitch angles.
When this constraint is not satisfied in hardware, the software procedure for obtaining this configuration is rectification (see 9.3.4). Starting from an image acquired with a given set of hardware parameters, rectification produces a new view of the same scene with the desired intrinsic parameters, yaw, pitch, and roll.
With this in mind, the three-dimensional reconstruction problem can always be reduced to a pair of cameras perfectly aligned with one another and with the axes, together with a rotation and translation that transform world coordinates from this sensor frame to the actual world frame.
The following sections discuss the special cases of cameras perfectly aligned with the axes, cameras aligned but tilted (nonzero pitch angle), and arbitrarily oriented cameras.
Paolo medici