We consider the special case in which the cameras are aligned with the axes, have identical intrinsic parameters and zero relative rotation, and are tilted by a pitch angle relative to the plane .
In this particular configuration, the projection matrix simplifies slightly to
Consequently, the horizontal coordinate of a generic point
in world coordinates is
Under the rectified-camera assumptions introduced earlier—that is, identical orientations and intrinsic parameters, a condition that can always be achieved by rectification or by considering appropriate image rows—the projection matrix (10.27) is the same in both coordinate systems. From equation (10.28), the only difference between the cameras is in the numerator, due to the different positions of the pin-hole along the axis.
It follows that the difference between the coordinates
in the two images
(the disparity) is
| (10.30) |
| (10.31) |
The coordinate of the point can instead be written as
This gives the system of equations:
| (10.34) |
A special case of disparity occurs when observing a plane, namely the ground plane, which accounts for a large proportion of the points in the image.
When the baseline is along the axis, the disparity of the plane
depends only on
, and its equation is that of a straight line.
The relationship between disparity and the coordinate can be derived by solving for
in the second equation and substituting it into the first of equations (10.33):
The first of equations (10.35) shows that disparity depends only on the distance when the height
is fixed (for example, on the ground).
The second shows that disparity
increases linearly with coordinate
, with a known slope
| (10.36) |
| (10.37) |
Paolo medici