In the 3D–2D approach, the 3D points are not known
exactly either; they were obtained through an earlier triangulation
procedure. Treating them as error-free data therefore artificially
separates structure estimation from motion estimation.
A more complete approach treats both the camera pose and the 3D point
locations as unknowns and directly minimizes the reprojection errors
in the images. Assuming independent, isotropic Gaussian errors in the
image coordinates, this minimization corresponds to maximum-likelihood
estimation:
The estimated projections can be expressed as
together with the rigid-motion relationship (10.101), while
also treating the actual 3D positions of the points
and
at the two time instants as unknowns.
This jointly estimates both the camera motion and the 3D positions of the individual features. Maximum-likelihood estimation again requires solving a nonlinear problem, but the number of unknowns grows with the number of points considered. For a rectified stereo pair, the cost function can be further simplified by exploiting the specific geometry of the configuration.