|
As Figure 10.2 illustrates, in the absence of noise the solution to the triangulation problem is the intersection of the optical rays associated with the observations in the different images.
This problem can readily be extended to cameras with known relative poses. If the relative pose is unknown, it can be estimated directly from the images, up to a scale factor, using techniques such as the Essential matrix (Section 10.4).
Because of errors in locating corresponding points (calibration errors are a separate issue), the lines formed by the optical rays are generally skew.
In that case, the solution closest under some cost function must be found. A least-squares solution is always possible with , using techniques such as Forward Intersections or the Direct Linear Transform (DLT).
Each optical ray subtended by an image pixel , where
denotes the ith view, must satisfy equation (10.9).
In the absence of noise, the intersection (Forward Intersections) of all these rays is the solution to the following, potentially overdetermined, linear system, with
unknowns in
equations:
| (10.13) |
A closed-form solution for the special case of just two lines is given in Section 1.6.8. This technique can be applied to the case of one camera aligned with the axes and a second camera positioned relative to the first according to relationship (10.5).
Using the properties of the cross product, the same expression can be obtained from the perspective projection matrices and image points, expressed below in homogeneous coordinates:
| (10.14) |
However, minimizing in world coordinates is not optimal for minimizing noise.
Without additional information about the structure of the observed scene, the optimal estimate (Maximum Likelihood Estimation) is the one that minimizes the error in image coordinates (reprojection). This requires greater computational cost and nonlinear techniques, since the cost function to be minimized is
| (10.16) |
This is a non-linear, non-convex problem, potentially with several local minima. The linear solution must be used as the starting point for the minimization.
An alternative approach is to estimate the relative pose between two cameras using the Essential matrix. Once the pose is known, the observed three-dimensional points can be reconstructed by triangulation, as shown in Section 10.4.4.
Paolo medici