SwisTrack/Components/CalibrationLinear

Description
Calibration of the camera system with a second order linear system. The non-linear transformation from image pixels to world coordinates is approximated by a second-order, non-symmetric polynomial of the form

$$x = a_{11}u+a_{12}v+a_{13}+a_{14}u^2+a_{15}v^2+a_{16}uv$$

$$y = a_{21}u+a_{22}v+a_{23}+a_{24}u^2+a_{25}v^2+a_{26}uv$$

with u, v the image pixels, and x, y the coordinates in world space (meters). The twelve parameters of this-very simple model-are estimated in a least-square fashion from a sufficiently large number of coordinate pairs. Thus, the software has to be provided with a number of image points which positions in the real world are known -- for instance by using a pattern of known dimensions. Hereby, increasing the number of pairs used in the estimation process over the minimum of six moderates the effect of noisy measurements during calibration.

Also, one observes that the precision of the approximation and hence the precision of the prediction is higher in the neighborhood of the training points. By that, we are able to bias the region within the camera frame where we want to minimize the prediction area.

Input
Particles.

Output
Particles.

Calib. Points
Path the XML file containing the calibration points. The file must have the following format:

 0.3      0.9       9.8       10.3       34.1       7.9       44.3       25.9

More points can be added like the two in this example. A minimum of 6 non-collinear points is needed to compute the calibration.