 [ Up ] [ DLT Method ] [ Least Square Method ] [ Survey Method ] [ Modified DLT ] [ Refraction Error ] [ Double-Plane Mrthod ] [ Localized DLT ] Weighted Least Square Method Camera Calibration Reconstruction References & Related Literature Weighted Least Square Method

The actual least-square algorithm to be incorporated in a DLT programs is more complex than  of the DLT Method page. Typical least-square algorithm involves weights to assure a more stable set of zeros. For this, add the weight matrix to  of the DLT Method page: ,    

where ,    

n = number of the equations, and W = diagonal weight matrix.

Top Camera Calibration

In the camera calibration, matrices X, Y & L shown in  are

, where = the image-plane coordinates, = the object- space coordinates, L1 - L16 = the DLT and additional parameters, n = the number of control points, and ,    

and = the coordinates of the principal point.

From  and  of the DLT Method page: ,    

where = the random errors involved in the equation, and = optical errors.

From : .    

It was assumed in  that L1 - L11 and R are constants and .    

From : ,    

where = the variances of the equations, = the variances of the image-plane coordinates, and = the variances of the object-space coordinates. The variance of the image-plane coordinates can be obtained by repeating digitization of the control points and computing the variance of their image-plane coordinates. The variance of the object-space coordinates can be obtained by repeating measurement of the real-life coordinates of the control points and computing their variance. It was assumed in  that x, y, z, u, and v are mutually independent.

It is a common practice to use the reciprocal of the variance as the weight associated with the equation: .    

Matrix X and Y in  both contain R that is a function of L9 - L11. For this reason, an iterative approach is typically employed in the camera calibration. Here are a sketch of the iterative approach commonly used in programming:

1. In the first iteration, it is impossible to compute R since L9, L10, and L11 are not available. The coordinates of the principal point are not available as well. Therefore, the standard DLT with 11 parameters must be used. Set the weight matrix to the identity matrix 1.
1. From the second iteration on, compute R using the L9, L10, and L11 obtained from the previous iteration. Compute [uo, vo] based on the L's obtained from the previous iteration. See  of the DLT Method page for details. Form the normal equation shown in  and solve the system for L1 to L16.
1. Repeat this procedure until all L's converge sufficiently. In either case, one must set a reasonable tolerance level for the convergence check.
1. Compute the variance-covariance matrix for L1 - L11. Since the system has only 10 independent factors, the parameters are mutually dependant. (See the Modified DLT page for details.) In other words, covariances among the parameters exist. The variance-covariance matrix for the L's will be used later in the reconstruction to compute the weights for the equations.

The variance-covariance matrix of the parameters can be expressed as ,    

where .    

MSE in  is the mean square error from the least-square estimation. Since a control point provides two equations, the DOF (degree of freedom) for the MSE computation is 2n - 16 as shown in . The variance-covariance matrix of the parameters is symmetric and square (11 x 11): .    

The diagonal terms are the variances while the off-diagonal terms are the covariances.

Top Reconstruction

In the reconstruction, matrices X, Y & L shown in  are ,    

where m = the number of cameras, and .    

Although the weight matrix is again in the form of , the actual method to compute the weights is different from . From : .    

It was assumed in  that x, y, and z are constants and . Therefore, the variances of the equations are ,    

where = the variance/covariance between the parameters from , and .    

It was assumed in  that u and v are independent from L1 - L11. L1 - L11 are mutually dependent. The weight matrix for the reconstruction, therefore, becomes ,    

where m = the number of cameras.

Again, an iterative approach must be used in solving the system:

1. In the first iteration, use the identity matrix (1) as the weight matrix. Solve the system for x, y & z.

2. From the second iteration on, compute the weight vectors (17). Use the x, y & z from the previous iteration in computing the weights and R (14).

3. Stop iteration when x, y & z sufficiently converge. Set a proper tolerance level for this.

Top References & Related Literature

Marzan, G.T. & Karara, H.M. (1975). A computer program for direct lnear transformation solution of the collinearity condition, and some spplications of it. Proceedings of the Symposium on Close-Range Photogrammetric Systems (pp. 420-476). Falls Church, VA: American Society of Photogrammetry.

Neter, J., Wasserman, W., and Kutner, M.H. (1985). Applied linear statistical models, 2nd Ed. Homewood, IL: Irwin.

Top © Young-Hoo Kwon, 1998-