The basic idea of the Direct Linear Transformation proposed by Abdel-Aziz and Karara (AAK71) makes it possible to calculate the coefficients of the matrices (9.57), (9.60) or of the matrix (9.25) directly, without considering the parameters or structure of the perspective transformation model. The paper also presents an approach for solving overdetermined problems using the pseudoinverse.
Given system (9.25), the 12 parameters of the projective matrix must be recovered to calibrate the system implicitly, that is, without knowing the internal parameters (9 to 11, depending on the model) that generated the matrix elements. This representation of the pin-hole camera is, of course, ideal, with no model nonlinearities.
The perspective function written in implicit form is
Since the system is homogeneous, its solution is the null space of
, the kernel of the coefficient matrix. For this reason, the matrix
is defined up to a multiplicative factor and therefore has only 11 free parameters (and even fewer, considering that a modern camera has only 3–4 intrinsic parameters and 6 extrinsic parameters).
Rearranging the system makes the propagation of noise on the points nonlinear, so this solution is not a maximum-likelihood estimate.
Although the matrix
obtained by this procedure conceals the sensor's internal structure, it allows a point to be projected from world coordinates to image coordinates and the line in the world corresponding to an image point to be recovered.
The result is generally unstable when only 6 points are used. The estimate is therefore normally obtained by processing more than the minimum number of points and using techniques such as the pseudoinverse to find a solution that minimizes the system's algebraic residual.
The problem is the same as before: a homogeneous solution exists, and the homogeneous solution equation (9.54) generalizes to
This formulation is useful when the projective model does not follow the pin-hole model, but it is still possible to recover the “camera” coordinates of the optical rays corresponding to the pixels, which are therefore available in homogeneous form.
The number of elements in the matrix can usually be reduced by imposing the constraint that all points involved in the calibration process lie on a particular plane (for example, the ground).
This means imposing the condition
, which eliminates a column of the matrix (the one corresponding to the
axis).
The matrix is then reduced to size
, becomes invertible, and can be defined as a homography (see Section 1.11).
We therefore define the matrix
(cf. (9.36)) as
As in the previous case, the nonlinear relation (9.57) can be rearranged to obtain linear constraints:
The solution is obtained by implicitly normalizing the form
and selecting the singular vector associated with the smallest singular value of the matrix.
A simpler and more intuitive method is to impose the additional constraint . This allows a standard linear problem to be solved instead of a homogeneous system.
System (9.57) can also be rearranged to obtain linear constraints of the form:
However, imposing means that the point
cannot be an image singularity (e.g., the horizon). In general, as discussed earlier, this is not the best choice in terms of solution accuracy.
Note that the solution depends on the normalization chosen. A common choice is to impose a constant norm, for example
, thereby obtaining a unique representation of the solution.
When overdetermined, these systems can be solved using the pseudoinverse method 1.1.
In both cases, at least 4 points are required to obtain a homography , and each additional point reduces the effect of measurement noise. For the nonhomogeneous formulation (9.59), the overdetermined system can be solved in the least-squares sense using the pseudoinverse, as discussed in Section 1.1. For the homogeneous formulation (9.58), the solution is instead obtained by finding the kernel vector associated with the smallest singular value of the constraint matrix, for example using singular value decomposition (SVD).
The homography can be expressed as a function of the camera's intrinsic and extrinsic parameters. It is worth noting that this representation uses a total of 9–10 parameters, whereas a homography matrix has only 8 degrees of freedom, since it is defined up to a scale factor. It follows that the intrinsic and extrinsic parameters cannot vary independently; they must satisfy the constraints imposed by the camera model's geometric structure. Separating the intrinsic parameters from the extrinsic parameters suggests estimating them independently to make calibration more robust. After all, the intrinsic parameters can be estimated offline with a certain degree of accuracy and apply to all possible camera positions (see Section 9.5.4).
We define the matrix
(cf. (9.37)) as
The matrix is defined up to a scale factor, whereas
defines the scale, since it still has two orthonormal columns.
Knowing the two columns of the rotation matrix makes it possible to recover the third, so this calibration is also valid for points outside the plane
.
As before, a nonlinear system of 3 homogeneous equations can, when suitably rearranged, provide two linear constraints:
| (9.62) |
Equations (9.54) and (9.58) can also be derived from purely geometric considerations, since the image and camera vectors must be parallel (the factor is purely multiplicative and can at most induce an affine transformation of the vector):
| (9.63) |
Paolo medici