Subsections


Implicit Calibration

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 $\mathbf{P}$ 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

\begin{displaymath}
\begin{pmatrix}
u_i \\
v_i \\
1
\end{pmatrix} = \mat...
...x} \begin{pmatrix}
x_i \\
y_i \\
z_i \\
1
\end{pmatrix}\end{displaymath} (9.53)

where the elements $p_{0} \ldots p_{11}$ are written in row-major order. System (9.53) can be rearranged to obtain two pairs of linear constraints for each point whose image and world coordinates are known:
\begin{displaymath}
\left[ \begin{array}{cccccccccccc}
x_i & y_i & z_i & 1 & 0...
...\begin{pmatrix}
p_0 \\
\vdots \\
p_{11}
\end{pmatrix} = 0
\end{displaymath} (9.54)

This technique is called DLT (direct linear transformation). Since each point provides two constraints, at least 6 linearly independent points are required to obtain these 12 parameters—that is, points that do not lie on the same plane, let alone on the same line.

Since the system is homogeneous, its solution is the null space of $\mathbb{R}^{12}$, the kernel of the coefficient matrix. For this reason, the matrix $\mathbf{P}$ 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 $\mathbf{P}$ 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.

Generalization to Homogeneous Coordinates

Equation 9.53 can be generalized to the case of an “image” point in homogeneous coordinates $(u_i, v_i, w_i)$:
\begin{displaymath}
\begin{pmatrix}
u_i \\
v_i \\
w_i
\end{pmatrix} \equ...
...P} \begin{pmatrix}
x_i \\
y_i \\
z_i \\
1
\end{pmatrix}\end{displaymath} (9.55)

The problem is the same as before: a homogeneous solution exists, and the homogeneous solution equation (9.54) generalizes to

\begin{displaymath}
{\tiny\left[ \begin{array}{cccccccccccc}
w_i x_i & w_i y_i...
...begin{pmatrix}
p_0 \\
\vdots \\
p_{11}
\end{pmatrix} = 0}
\end{displaymath} (9.56)

for every $i$.

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.

DLT Computation of the Homography

The number of elements in the matrix $\mathbf{P}$ 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 $z_{i}=0$ $\forall i$, which eliminates a column of the matrix (the one corresponding to the $z$ axis). The matrix is then reduced to size $3 \times 3$, becomes invertible, and can be defined as a homography (see Section 1.11).

We therefore define the matrix $\mathbf{H} = \mathbf{P}_Z$ (cf. (9.36)) as

\begin{displaymath}
\lambda
\begin{pmatrix}
u_{i} \\
v_{i} \\
1
\end{pmatrix} = \mathbf{H} \begin{pmatrix}
x_{i} \\
y_{i} \\
1
\end{pmatrix}\end{displaymath} (9.57)

As discussed in Section 9.3, this matrix is very useful, among other things, for removing perspective from an image and synthesizing a fronto-parallel view of the plane using a transformation called orthogonal rectification, bird's-eye view, or inverse perspective mapping. This transformation can therefore be used to remove perspective (perspective mapping or inverse perspective mapping), reproject a plane between two images (ground plane stereo), or generate an image with different parameters (rectification, panoramic images) using a virtual plane.

As in the previous case, the nonlinear relation (9.57) can be rearranged to obtain linear constraints:

\begin{displaymath}
\left[
\begin{array}{ccccccccc}
x_i & y_i & 1 & 0 & 0 & 0 &...
...ight] \begin{pmatrix}
h_0 \\
\vdots \\
h_8
\end{pmatrix} = 0
\end{displaymath} (9.58)

Since this matrix is also defined up to a multiplicative factor, it has only 8 degrees of freedom, so an additional constraint can be imposed.

The solution is obtained by implicitly normalizing the form $\Vert\mathbf{H}\Vert _F=1$ 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 $h_{8}=1$. 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:

\begin{displaymath}
\left[
\begin{array}{cccccccc}
x_{i} & y_{i} & 1 & 0 & 0 & 0...
...7}
\end{pmatrix}=
\begin{pmatrix}
u_{i} \\
v_{i}
\end{pmatrix}\end{displaymath} (9.59)

This is a nonhomogeneous system of two equations in 8 unknowns $h_0 \ldots h_7 $, and each point with known world position on a plane and image position provides two constraints.

However, imposing $h_{8}=1$ means that the point $(0,0)$ 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 $\Vert\mathbf{H}\Vert _F=c$, 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 $\mathbf{H}$, 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 $\mathbf{R}_{Z}$ (cf. (9.37)) as

\begin{displaymath}
\lambda
\begin{pmatrix}
\tilde{u_{i}} \\
\tilde{v_{i}} \\
...
...hbf{R}_{Z}
\begin{pmatrix}
x_{i} \\
y_{i} \\
1
\end{pmatrix}\end{displaymath} (9.60)

where $(\tilde{u_{i}},\tilde{v_{i}})$ denotes the so-called normalized image coordinates (the homogeneous coordinates of the point $(\tilde{x}_i,\tilde{y}_i,\tilde{z}_i)^{\top}$ in camera coordinates).

The matrix $\mathbf{H}$ is defined up to a scale factor, whereas $\mathbf{R}_{Z}$ 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 $z=0$.

As before, a nonlinear system of 3 homogeneous equations can, when suitably rearranged, provide two linear constraints:

\begin{displaymath}
\begin{array}{l}
\mathbf{A}\mathbf{x}=0 \\
\mathbf{A} = \be...
...}, r_{6}, r_{7}, p_{x}, p_{y}, p_{z} \right)^{\top}
\end{array}\end{displaymath} (9.61)

(Abdel-Aziz and Karara (AAK71)). A system of $2 \times N$ equations can therefore be constructed for all $N$ control points to estimate the 9 unknowns. The matrix is defined up to a multiplicative factor, but in this case the internal structure of the matrix $\mathbf{R}_{Z}$ can help recover the extrinsic parameters (cf. Section 9.5.3). In fact, the two columns of the matrix must be orthonormal:
\begin{displaymath}
\begin{array}{rl}
r^{2}_{0} + r^{2}_{3} + r^{2}_{6} & = 1 ...
...\
r_{0}r_{1} + r_{3}r_{4} + r_{6}r_{7} & = 0 \\
\end{array}\end{displaymath} (9.62)

These additional nonlinear constraints arise because the matrix is explicitly defined by only 6 parameters (3 rotations and the translation).

Geometric Representation

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 $\lambda_i$ is purely multiplicative and can at most induce an affine transformation of the vector):

\begin{displaymath}
\mathbf{p} \times \mathbf{P} \mathbf{x} = \mathbf{0}
\qquad
\mathbf{m}' \times \mathbf{H} \mathbf{m} = \mathbf{0}
\end{displaymath} (9.63)

This compact formulation is generally referred to as DLT (HZ04) and applies to all linear transformations known up to a multiplicative factor, converting the problem into a homogeneous one.

Paolo medici
2026-10-19