The general equation relating image points between two arbitrary viewpoints can be written as
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 belonging to a specific plane, or when the cameras share the same pin-hole.
The second case will be 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 only of a plane (for example, the ground).
The image points are projected into world coordinates by camera 1 and then reprojected into image coordinates by a second camera, 2, with different intrinsic and extrinsic parameters.
Since a plane is always reprojected, the composition of this transformation is also a homography:
| (9.42) |
From a theoretical standpoint, forcing plane to remain constant matters only if the translation vector changes.
If the translation vector is modified between the two views and there are points that do not belong to the specified plane, an incorrect remapping occurs between the views (the homographic transformation is no longer valid).
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 by knowing the transformation elements of the two views
and the plane equation
, where
is the normal to the plane and
is the distance between the first camera and the plane. In this case, a point
in the first view belonging to the plane satisfies the equation
| (9.45) |
Paolo medici