Zhang (Zha99) and, independently, Sturm and Maybank (SM99) identified a method for obtaining a linear equation to recover the camera parameters, while also updating the calibration techniques developed mainly by Tsai (Tsa87) and others (WM94), which were still valid but by then dated to the 1980s.
This technique uses several homography matrices obtained by observing a plane (for example, a calibration grid with evenly spaced markers) and attempts to recover the camera's intrinsic parameters explicitly from them. As discussed previously, matrix
, the homographic transformation of a plane, has 8 degrees of freedom, but it is not directly possible to recover the 10 explicit parameters that generated it.
Methods for obtaining the homography matrix from correspondences between image points and plane points are discussed in Section 9.5.1.
Matrix , and in particular Equation (9.36), can be written explicitly as
Despite the presence of factor , it is possible to express relations based on the orthogonality of vectors
and
in order to impose the following two constraints:
| (9.74) |
The 4 (or 5 unknowns when skew is not neglected) in matrix under the 2 constraints (9.73) can be solved using at least 2 (or 3) different planes; that is, matrices
whose columns are not linearly dependent on one another.
Once matrix 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
.
In fact,
can be transformed using suitable values of vector
and with
, the vector to be determined, containing the nonzero values of the upper-triangular matrix
. In this way, the system of equations (9.73) is transformed into the solution of a homogeneous linear system in
.
Once the intrinsic parameters and matrix have been determined, the rotation and translation can be estimated for each homography matrix
used during the optimization stage:
| (9.75) |
The system as a whole is nevertheless ill-conditioned, and obtaining a stable solution after repeated trials is difficult. The values obtained through this linear technique are useful, however, as the starting point for a Maximum Likelihood Estimation stage that minimizes the reprojection errors (Section 9.5.6).
One final note: in his paper, Zhang assumes that the Principal Point coincides with the distortion center, which is generally not exact.
Paolo medici