5 | | Mark the four box corners with the mouse. We find the coordinates of the four calibration points in pixels. |
6 | | |
7 | | (X,Y)=(80.3, 81.6), (982.3, 86.1), (978.9, 937.4), (71.2, 929.5). |
8 | | |
9 | | The corresponding physical coordinates are known to be |
10 | | |
11 | | (x,y)=(0,0),(58.8,0),(58.8,55.1),(0,55.1), with an origin (0,0) taken at the lower left (and z=0). |
12 | | |
13 | | Introduce those in the table [!ListCoord]. This can be conveniently done by copy paste of the Matlab vector x=[0 58.8 58.8 0] in the upper line of the x column, and y=[0 0 55.1 55.1] in the y column (use carriage return to validate the input). |
14 | | Then apply rescale. we observe that the figre is slightly rotated. |
15 | | We then apply linear which allows for rotation. The precison is improved. |
| 5 | Perform the geometric calibration by marking the four box corners with the mouse, as described in [wiki:"Tutorial: geometric calibration" Tutorial: geometric calibration], section 'calibration with a set of reference points. Alternatively, you can skip this operation by using the reference file Dalsa1.ref.xml provided, removing the extension '.ref' to make it active. |