For cameras perfectly aligned with the axes and with identical intrinsic parameters (the same focal length and principal point), the equations for three-dimensional reconstruction simplify considerably.
In this configuration, the perspective projection equations reduce to
We now consider only the stereo case: for simplicity, the left camera is denoted by subscript 1 and the right camera by 2.
The alignment constraints require ,
,
, and
, with the right camera placed at the origin of the reference frame without loss of generality.
The quantity
is called the baseline.
The difference between the horizontal coordinates of the projections of the same point in the two images of the stereo pair is called the disparity.
Substituting the alignment constraints into equation (10.17) gives
Inverting this simple relationship and substituting it into equation (10.17) makes it possible to recover the world-coordinate point corresponding to a point
in the right camera with disparity
:
As can be seen, each coordinate is determined by the multiplicative factor , the baseline, which is the true scale factor of the reconstruction, and by the inverse disparity
.
The coordinates obtained in this way are sensor coordinates, defined for a particular stereo configuration in which the orientation and position are aligned with and coincident with the coordinate axes.
To convert from sensor coordinates to the general case of world coordinates, with arbitrarily oriented cameras, a transformation from sensor to world coordinates must be applied: the rotation matrix
and the translation
of the pin-hole coordinates, so that we can write
Combining equation (10.19) with equation (10.20), we can define a matrix such that the conversion from image-disparity point
to world coordinates
can be written in the compact form
| (10.21) |
Paolo medici