Given a pair of calibrated cameras, the projections of a 3D point in the two images satisfy the relationship
In general, it is not possible to transform a view generated by one camera into the view generated by another. This is possible only when correctly remapping points on a particular plane or when the cameras share the same pin-hole.
The second case is discussed in the next section.
In the first case, points can be remapped from one view to another by combining a Perspective Mapping followed by an Inverse Perspective Mapping, under the assumption that the observed scene consists of a single plane (for example, the ground).
Image points are projected into world coordinates using camera 1, then reprojected into image coordinates using a second camera, 2, with different intrinsic and extrinsic parameters.
Since the projection is always onto a plane, the composition of these transformations is also a homography:
| (9.42) |
Theoretically, the requirement that a plane be held constant matters only if the translation vector changes.
If the translation vector changes between the two views and there are points that do not lie on the specified plane, the points are incorrectly remapped between the views (the homographic transformation no longer holds).
Transformation (9.41) can also be used to detect vertical obstacles in techniques such as Ground Plane Stereo and Motion Stereo.
This homography matrix can be generalized given the elements of the transformation between the two views
and the equation of the plane
, where
is the plane normal and
is the distance between the first camera and the plane. In this case, a point
in the first view that lies on the plane satisfies the equation
| (9.45) |
Paolo medici