The generic equation that relates the image points between two generic 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 only feasible if one aims to correctly remap points on 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, it is possible to remap points from one view to another by utilizing a combination of a Perspective Mapping followed by an Inverse Perspective Mapping, under the assumption that the observed scene consists solely of a plane (for example, the ground). The image points are projected into world coordinates on a camera 1 and then reprojected back into image coordinates on a second camera 2 with different intrinsic and extrinsic parameters. Since a plane is always being reprojected, the composition of this transformation remains a homography:
| (8.33) |
From a theoretical standpoint, the necessity to enforce a constant plane only affects the situation if the translation vector changes. In cases where the translation vector is modified between the two views and there are points not belonging to the indicated plane, an incorrect remapping occurs between the two views (the homographic transformation is no longer respected). The transformation (8.32) can also be utilized to identify vertical obstacles within techniques such as Ground Plane Stereo and Motion Stereo.
This homographic matrix can be generalized by knowing the elements of the transformation between the two views
and the equation of the plane
, where
is the normal to the plane and
is the distance from the first camera to the plane itself.
In this case, a point from the first view that lies on the plane satisfies the equation
By combining these two equations, the homographic constraint is obtained:
| (8.36) |
A homography can always be decomposed into
(there are 4 possible decompositions, and the one that satisfies the input points must be chosen).
Paolo medici