The three-dimensional reconstruction techniques presented so far have been introduced primarily under the pin-hole camera model. This assumption, however, is not strictly necessary. Triangulating a point requires only that each image point be associated uniquely with the corresponding optical ray in three-dimensional space.
In the general case, a camera can be described by a projection function
| (10.93) |
| (10.94) |
In particular, given two corresponding points observed by two cameras, the corresponding pixels are associated with two optical rays:
| (10.95) |
This observation makes it possible to extend three-dimensional reconstruction to perspective, Fish-Eye, and omnidirectional cameras, and more generally to any sensor for which the relationship between an observed pixel and the corresponding optical ray is known.
In many practical cases, it is convenient to transform the acquired image into an alternative space using a suitable Warp-Table. The purpose of this transformation is not only to correct the distortion introduced by the optics but also to simplify the search for corresponding points.
To preserve the concept of disparity, and thus continue to apply dense stereo algorithms developed for rectified images, the transformation must keep correspondences aligned on the same image rows. In practical terms, the horizontal coordinate must depend only on the horizontal viewing angle, while the vertical coordinate must depend only on the vertical viewing angle.
A particularly widespread parameterization is the angular (or polar) parameterization, defined by
| (10.96) |
The inverse transformation is
| (10.97) |
Unlike the classical perspective model, this parameterization can represent points distributed over an extremely wide field of view, up to a complete hemisphere. For this reason, it is frequently used to remap Fish-Eye cameras and panoramic systems.
Once the inverse function associating each pixel with the corresponding three-dimensional optical ray is known, all the techniques discussed in this chapter—including epipolar constraints, Essential Matrix estimation, triangulation, sparse reconstruction, and dense stereo—can be applied without substantial modification. Only the method used to recover the observed optical-ray direction from the image point changes.
Paolo medici