01.12.2012 Views

Master Thesis - Fachbereich Informatik

Master Thesis - Fachbereich Informatik

Master Thesis - Fachbereich Informatik

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

84 CHAPTER 4. LENGTH MEASUREMENT APPROACH<br />

0.5<br />

0.4<br />

0.3<br />

0.2<br />

0.1<br />

0<br />

0 2 4 6 8 10 12<br />

x<br />

14 16 18 20<br />

(a) (b)<br />

(c)<br />

5<br />

4<br />

3<br />

2<br />

Max<br />

y<br />

1<br />

0<br />

0 2 4 6 8 10 12<br />

x<br />

14 16 18 20<br />

Figure 4.21: Effect of the weighting coefficient b in Equation 4.14. (a) Tube edge detection<br />

results with a uniform weighted template (b = 0). (b) Results of a template with enhanced<br />

ends (b = 3). (c) Corresponding cross-correlation results of (a), and (d) the cross-correlation<br />

results of (b) respectively. The maximum in (c) and (d) corresponds to the pixel position<br />

where the template matches best. In this example, the ridge closer to the observer is due to<br />

a background edge while the ridge further away corresponds to the real tube edge.<br />

Figure4.21showsanexampleofhowtheweightingofthetemplateendsimprovesthe<br />

tube edge detection. In this example the right boundary contrast of a transparent heat<br />

shrink tube is quite low. Using a uniformly weighted template, i.e. b = 0, the maximum<br />

correlation score is reached at a background edge (see Figure 4.21(a) and (c)). In this<br />

case, the tube would be measured larger than it really is. On the other hand, with<br />

an enhancement of the template ends, the tube edge results in a larger score than the<br />

background edge leading to a correct detection as can be seen in Figure 4.21(b) and (d).<br />

The enhancement of the template ends is motivated in transparent tube characteristics.<br />

For black tubes, b = 0 describes the response of the SOBELX operator best. However,<br />

there is no disadvantage if using the same weighting coefficient as for transparent tubes.<br />

Due to the strong contrast of black tubes, the curvature and size of the template are the<br />

dominant factors influencing the matching results.<br />

Template Rotation The templates generated by Equation 4.14 are symmetric along the<br />

y-axis with respect to the template center. Thus, the ends of the template lie always on<br />

one line perpendicular to the x-axis. In the ideal case, the edge response of a heat shrink<br />

tube has the same characteristic. In practice, however, a tube can be slightly angular<br />

within the guide bars, or the tube edge might be cut skew. In both cases the strong edge<br />

responses at the ends do not have to lie on one line perpendicular to the x-axis as in the<br />

0.5<br />

0.4<br />

0.3<br />

0.2<br />

0.1<br />

0<br />

Max<br />

(d)<br />

5<br />

4<br />

3<br />

2<br />

y<br />

1<br />

0

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!