01.12.2012 Views

Master Thesis - Fachbereich Informatik

Master Thesis - Fachbereich Informatik

Master Thesis - Fachbereich Informatik

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

86 CHAPTER 4. LENGTH MEASUREMENT APPROACH<br />

curvature<br />

4.5<br />

4<br />

3.5<br />

3<br />

2.5<br />

2<br />

1.5<br />

1<br />

0.5<br />

3<br />

x 10<br />

5<br />

0<br />

0 50 100 150 200<br />

x<br />

250 300 350 400<br />

(a) Left tube side<br />

curvature<br />

3<br />

x 10<br />

0<br />

0.5<br />

1<br />

1.5<br />

2<br />

2.5<br />

3<br />

3.5<br />

4<br />

4.5<br />

5<br />

350 400 450 500 550<br />

x<br />

600 650 700 750<br />

(b) Right tube side<br />

Figure 4.23: Curvature of best matching template depending on the x-position of the match.<br />

one has to consider 2 × 10 × 3 templates if k = 3. Since correlation is an expensive<br />

operation, the processing time increases significantly even if the local ROIs are relative<br />

small. It turned out that not more than 15 templates can be checked at each side without<br />

skipping frames at a frame rate of 50fps at an AMD Athlon 64 FX-55 processor with 2GB<br />

RAM.<br />

One thinkable optimization is to reduce the curvature resolution, i.e. quantize the same<br />

range of curvatures to ≤ 5 templates at each side. Obviously this reduces the accuracy of<br />

the edge localization and is no satisfying solution in this application.<br />

Instead one can apply model knowledge to exclude several curvatures depending on<br />

the horizontal image position. It can be assumed that the curvature is maximal at the<br />

image boundaries and decreases toward the image center. Real sequences support this<br />

assumption. Figure 4.23 shows the occurrence of different curvatures with respect to x.<br />

The data was acquired over several sequences including transparent and black tubes. It<br />

turns out that the curvature decreases linearly within a certain band. The upper and lower<br />

boundary of this band determine which curvatures can be excluded at a given position.<br />

The range distance of curvatures dψ at a position x is defined as:<br />

dψ(x) =ψmax(x) − ψmin(x) (4.16)<br />

where ψmax(x) andψmin(x) are the maximum and minimum curvature occurring at<br />

this position. dψ is the average range distance over all x. This range must be checked<br />

each time and is covered by n templates. In practice n = 5 is used, since as mentioned<br />

before the maximum number of templates that can be processed with the given hardware<br />

in real-time is 15 (in addition to all further processing that is needed), and 5 curvatures ×<br />

3 rotations = 15 templates to be checked each frame at one tube side. To yield the desired<br />

resolution over the whole range of curvatures, the total number of curvatures Nψ,total is<br />

computed as follows:<br />

Nψ,total = n(ψmax − ψmin)<br />

dψ<br />

(4.17)

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

Saved successfully!

Ooh no, something went wrong!