Calibration Using the Sturm–Maybank–Zhang Method

Zhang (Zha99) and, independently, Sturm and Maybank (SM99) proposed a method for deriving a linear equation to estimate camera parameters. They also updated calibration techniques—still valid, but dating back to the 1980s—developed primarily by Tsai (Tsa87) and others (WM94).

This technique uses several homography matrices $\mathbf{H}$ computed from observations of a plane (for example, a calibration grid with equally spaced markers) to explicitly recover the camera's intrinsic parameters. As discussed earlier, the matrix $\mathbf{H}$, which represents a homographic transformation of a plane, has 8 degrees of freedom, but the 10 explicit parameters that generated it cannot be recovered directly. Methods for estimating the homography matrix from correspondences between image points and plane points are discussed in Section 9.5.1.

Matrix $\mathbf{H}$, and specifically equation (9.36), can be written explicitly as

\begin{displaymath}
\mathbf{H} = \begin{bmatrix}
\mathbf{h}_1 & \mathbf {h}_2 ...
...atrix}
\mathbf{r}_1 & \mathbf {r}_2 & \mathbf{t} \end{bmatrix}\end{displaymath} (9.73)

where $\lambda$ indicates the presence of an unknown multiplicative factor in the computation of the homography matrix. We focus on the part of the rotation matrix formed by the column vectors $\mathbf{r}_1$ and $\mathbf{r}_2$, which are orthonormal to each other.

Despite the presence of the factor $\lambda$, relations based on the orthogonality of the vectors $\mathbf{r}_1$ and $\mathbf{r}_2$ can be expressed to impose the following two constraints:

\begin{displaymath}
\begin{array}{l}
\mathbf{h}_1^{\top} \mathbf{W} \mathbf{h}...
...h}_1 = \mathbf{h}_2^{\top} \mathbf{W} \mathbf{h}_2
\end{array}\end{displaymath} (9.74)

where $\mathbf{W}$ has been defined, neglecting the skew for simplicity, as
\begin{displaymath}
\mathbf{W} = (\mathbf{K}^{-1})^{\top} \mathbf{K}^{-1} = \beg...
...dfrac{u_0^2}{k_u^2} + \dfrac{v_0^2}{k_v^2} + 1\\
\end{bmatrix}\end{displaymath} (9.75)

a symmetric matrix. This equation describes a conic and is, in fact, the equation of the image of the “absolute conic” (LF97).

The 4 (or 5, if skew is not neglected) unknowns in matrix $\mathbf{W}$ subject to the 2 constraints (9.74) can be solved using at least 2 (or 3) different planes, that is, matrices $\mathbf{H}$ whose columns are not linearly dependent.

Once matrix $\mathbf{W}$ has been obtained, the original matrix can finally be determined using Cholesky decomposition. Alternatively, Zhang provides equations for obtaining the camera's intrinsic parameters directly from matrix $\mathbf{W}$. In fact, $\mathbf{h}_i^{\top} \mathbf{W} \mathbf{h}_j = \mathbf{v}_{ij}^{\top} \mathbf{w}$ can be transformed using suitable values of vector $\mathbf{v}_{ij}$ and $\mathbf{w}$, a vector to be determined from the nonzero entries of the upper triangular matrix $\mathbf{W}$. The system of equations (9.74) is thereby transformed into a homogeneous linear system in $\mathbf{w}$.

Once the intrinsic parameters and matrix $\mathbf{K}$ have been determined, the rotation and translation can be estimated for each homography matrix $\mathbf{H}$ used in the optimization stage:

\begin{displaymath}
\begin{bmatrix}\mathbf{r}_1 & \mathbf{r}_2 & \mathbf{t} \end{bmatrix} = \lambda \mathbf{K}^{-1}\mathbf{H}
\end{displaymath} (9.76)

Columns $\mathbf{r}_1$ and $\mathbf{r}_2$ are usually sufficient to recover the rotation angles. All the extrinsic parameters can be recovered from each grid, making it possible to measure the reprojection error.

The system as a whole is nevertheless ill-conditioned, and repeated trials rarely yield a stable solution. The values obtained with this linear technique are useful, however, as an initial estimate for a Maximum Likelihood Estimation stage that minimizes the reprojection error (Section 9.5.6).

One note: in his paper, Zhang assumes that the Principal Point coincides with the distortion center, which is generally not exact.

Paolo medici
2026-10-19