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.

68 CHAPTER 4. LENGTH MEASUREMENT APPROACH<br />

The threshold τpeak is calculated dynamically based on the mean of P +<br />

drv<br />

P +<br />

drv with<br />

τpeak = αpeakP +<br />

drv<br />

denoted as<br />

(4.9)<br />

The factor αpeak indirectly relates to the number of peaks left to be further processed.<br />

τpeak is also denoted as profile peak threshold. The goal is to remove as much peaks as<br />

possible that do not belong to a tube’s boundary without eliminating any relevant peak.<br />

If the images are almost uniform over larger regions as for black tubes, there are only<br />

a few strong changes in intensity. Thus, P +<br />

drv is expected to be quite low compared to<br />

max(P +<br />

) and the peaks belonging to the tube boundaries are conserved even for a larger<br />

drv<br />

αpeak. On the other hand, for transparent tubes the contrast between foreground and<br />

background is lower. Hence, the distance between intensity changes due to background<br />

clutter and those at the tube boundaries is much smaller. The choice of the right threshold<br />

is more critical in this situation and αpeak has to be selected carefully. If it is too low,<br />

too many peaks will survive the thresholding. Otherwise if it is too large, important<br />

peaks will be eliminated as well. The profile peak threshold is closely related to the<br />

detection sensitivity of the system as will be discussed in more detail in later sections.<br />

More sophisticated calculations of τpeak considering the difference between maximum value<br />

and mean or the median did not perform better.<br />

Step 4: The x-coordinates of the remaining peaks defined as local maxima in Pthresh<br />

arestoredinalistdenotedascandidate positions Ω in ascending order. NΩ indicates the<br />

number of elements in Ω, i.e. the number of potential tube boundaries in an image.<br />

4.4.3. Peak Evaluation<br />

The process described in the previous section results in a number of candidate positions<br />

that have to be evaluated since it is possible that there are more candidate positions<br />

than the number of tube boundaries. This is due to the fact that the thresholding is<br />

parametrized to avoid the elimination of relevant positions. The actual number of tube<br />

boundaries indicating the current state as introduced in Section 4.2 is not known by now<br />

and has to be extracted by applying model knowledge to the candidate positions.<br />

Since only four of the nine possible states can be used for measuring, it is of interest to<br />

know whether the current image matches one of these four states. If this is the case, it is<br />

sufficient to localize the boundaries of the centered tube. Under the assumptions made in<br />

Section 4.2 only one tube can be in the visual field of the camera completely at one time.<br />

In the following, an approach reducing this problem to an iterative search for boundaries<br />

that belong to a single foreground object is presented.<br />

First, Ω is extended to Ω ′ by two more x-positions: x = 0 at the front and x = xmax<br />

at the back of the list, where xmax is the largest possible x-coordinate in the profile.<br />

Then, any segment s(i), defined as the region between two consecutive positions Ω(i) and<br />

Ω(i + 1) , can be assigned to one of two classes in {BG, TUBE} representing background<br />

and foreground respectively. In this way, the whole profile is partitioned into NΩ +1<br />

segments if there are NΩ peaks.

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

Saved successfully!

Ooh no, something went wrong!