For cameras perfectly aligned with the axes and having equal intrinsic parameters (the same focal length and the same principal point), the equations for three-dimensional reconstruction simplify considerably.
Under these conditions, the perspective projection equations reduce to
We now restrict ourselves to the stereo case: for simplicity, the left camera will be denoted by subscript 1 and the right camera by 2.
The alignment constraints impose ,
,
, and
, having placed the right camera at the origin of the reference frame without loss of generality.
Quantity
is called the baseline.
The difference between the horizontal coordinates of the projections of the same point viewed in the two images of the stereo pair is called the disparity.
This value is obtained by inserting the alignment constraints into equation (10.17), yielding
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 of the baseline, which is the actual scale factor of the reconstruction, and by the inverse of the disparity
.
The coordinates thus obtained are sensor coordinates, referred to a particular stereo configuration in which orientation and position are aligned with and coincident with the coordinate axes.
To move from sensor coordinates to the general case of world coordinates, with arbitrarily oriented cameras, a transformation from sensor to world coordinates must be applied, namely the rotation matrix
and the translation
of the pin-hole coordinates, so that we can write
Combining equation (10.19) with equation (10.20), it is possible to define a matrix such that the conversion between the disparity-image point
and the world coordinate
can be written in the very compact form
| (10.21) |
Paolo medici