Master Thesis - Fachbereich Informatik
Master Thesis - Fachbereich Informatik
Master Thesis - Fachbereich Informatik
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
4.7. TEACH-IN 95<br />
The pair of a pixel length l(i) and a real world reference L(i) can be used to compute<br />
the ideal factor fpix2mm(i) thatconvertspixelsintomm for a measurement i as follows:<br />
fpix2mm(i) = L(i)<br />
(4.29)<br />
l(i)<br />
This procedure has to be repeated several times for different reference tubes. Finally,<br />
the estimated calibration factor is computed analog to Equation 4.25 using a k-outlier<br />
filter before averaging:<br />
fpix2mm =<br />
N−k �<br />
j=0<br />
f ′ pix2mm(j) (4.30)<br />
where k is the number of outliers, N the number of iterations, and f ′ pix2mm indicates the<br />
single calibration factors sorted by the squared distance to the mean in ascending order.<br />
The median could be also used instead of averaging.<br />
The root-mean-square error at iteration i betweentheknownrealworldlengthsand<br />
thelengthscomputedbasedontheestimatedcalibrationfactorcanbeusedasmeasure<br />
of quality.<br />
�<br />
�<br />
�<br />
Err(i) = � i �<br />
(L(j) − l(j)fpix2mm) 2 (4.31)<br />
j=1<br />
If the error is low, this can be used as indicator that the learned calibration factor is<br />
a good approximation of the ideal magnification factor that relates a pixel length in the<br />
image into a real world length in the measuring plane ΠM without any knowledge on the<br />
distance between ΠM and the camera.<br />
In practice, the learning of the calibration factor is an interactive process. One can<br />
define a minimum and maximum number of iterations Nmin and Nmax respectively. Once<br />
Nmin correspondences have been acquired, fpix2mm and Err(i) are computed for the first<br />
time. The operator continues the procedure as long as the calibration at iteration i +1<br />
does change more than a little epsilon compared to iteration i. This means the learning<br />
can be stopped if |Err(i +1)− Err(i)|