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.

4.4. TUBE LOCALIZATION 69<br />

Global Threshold The classification into BG and TUBE is based on the general assumption<br />

that the mean intensity of objects is darker than the background. In more detail,<br />

taking the mean value of the smoothed profile Psmooth as a global reference and calculating<br />

the local mean value for each segment s(i), the classification C can be expressed as:<br />

�<br />

TUBE , mean(s(i)) ≤ Psmooth<br />

C1(s) =<br />

(4.10)<br />

BG , otherwise<br />

In image segmentation the mean value is widely used as an initial guess of a threshold<br />

separating two classes of data distinguishable via the gray level [48, 2]. There are many<br />

more sophisticated approaches for threshold selection including histogram shape analysis<br />

[57, 63, 26], entropy [54], fuzzy sets [20, 14] or cluster-based approaches [55, 46]. The different<br />

techniques are summarized and compared in several surveys [59, 47, 60]. However,<br />

in this application the threshold is used for classification and it is not intended for calculation<br />

of a binary image that segments the tubes from the background. Since processing<br />

time is strictly limited and critical in this application, it is essential to save computation<br />

time if possible. As introduced before, the actual segmentation is based on strong vertical<br />

edges in the profile, but does not include any semantic meaning of the segments. In the<br />

classification step, the mean turned out to be a reliable and fast choice to distinguish between<br />

foreground and background segments both for black and transparent tubes if there<br />

is a uniform and sufficient contrast between tubes and the background over the whole image.<br />

In this case there is no need for another threshold than the mean - saving additional<br />

operations.<br />

Insteadofcomparingtheglobalmeanwiththelocalmean,thelocalmediancouldbe<br />

observed to result in a more distinct measure for discrimination:<br />

�<br />

TUBE , median(s(i)) ≤ Psmooth<br />

C2(s) =<br />

(4.11)<br />

BG , otherwise<br />

The better performance of measure C2 originates in the characteristic of the median<br />

tobelesssensitivetooutlierscomparedtothemean[32]. Thisisimportantsincethe<br />

input data can be very unsteady due to the background texture or printing visible on<br />

transparent tubes (independent of the additional camera noise level). As mentioned before,<br />

thesmoothingoftheprofileatthefirststepalsoblursthetubeedgescausingthesegment<br />

boundaries not to be totally precise. In this case, the local mean tends to move closer<br />

to the global mean, which does not have to implicate a misclassification. The median,<br />

however, turned out to be more distinct in most cases. Figure 4.14 shows the smoothed<br />

profile of (a) a transparent and (b) a black tube respectively. The examples represents the<br />

states entering + centered and entering + centered + leaving. The segment boundaries,<br />

which correspond to the locations of the strongest peaks in the first derivative of the<br />

profile, are visualized as well as the global mean and the local median. Segments that<br />

have a median above the global mean are classified as background.<br />

Regional Threshold One drawback of the global threshold approach is that different<br />

background segments are assumed to be almost equal in image brightness, i.e. the tubebackground<br />

contrast is approximately uniform within one image. This assumption, however,<br />

does not hold if there are larger variations in background brightness (for example<br />

due to material properties or dirt on the belt). Such variations can occur between images,

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

Saved successfully!

Ooh no, something went wrong!