# SwisTrack/Components/CalibrationLinear

## Description[edit]

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

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[edit]

Particles.

## Output[edit]

Particles.

## Parameters[edit]

### Calib. Points[edit]

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

<?xml version="1.0"?> <pointlist> <points> <point> <xworld>0.3</xworld> <yworld>0.9</yworld> <ximage>9.8</ximage> <yimage>10.3</yimage> </point> <point> <xworld>34.1</xworld> <yworld>7.9</yworld> <ximage>44.3</ximage> <yimage>25.9</yimage> </point> </points> </pointlist>

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