The equation (9.21) can be easily expressed in homogeneous form. The matrix that allows the reconstruction of the three-dimensional point coordinates from image-disparity coordinates directly in the camera reference frame is
| (9.22) |
| (9.23) |
In real conditions, since the camera is rotated and translated with respect to the ideal conditions, it is sufficient to multiply the matrix by the matrix
, which represents the transformation from camera coordinates to world coordinates, in order to obtain a new matrix that allows the conversion from disparity coordinates to world coordinates and vice versa.
The use of this formalism allows for the transformation of disparity points acquired from pairs of cameras positioned at different viewpoints (for example, a stereo pair that moves over time or two stereo pairs rigidly connected to each other). In this case, the relationship that links disparity points acquired from the two viewpoints is also represented by a matrix :
| (9.24) |
which enables the transformation of into
(this is a homographic transformation in 4 dimensions, quite similar to those in 3 dimensions discussed so far). It is noteworthy that we have used as pose
the syntax of equation (1.64), aiming to express the point from reference frame 2 in reference frame 1. Since all the points involved are expressed in camera coordinates, if there are transformations between sensors expressed in world coordinates, as is typically the case, it is necessary to include the change of reference frame. This class of transformations is commonly referred to as 3D Homographies.
Paolo medici