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.

82 CHAPTER 4. LENGTH MEASUREMENT APPROACH<br />

# templates ψmin ψmax χ a b<br />

Left: 30 0.0 0.02 0.00066 −1 3<br />

Right: 30 −0.02 0.0 0.00066 1 3<br />

Table 4.3: A set of 30 templates with curvatures equally distributed between ψmin and ψmax<br />

at a curvature resolution (step size) χ has been used to determine the occurrence of certain<br />

curvatures empirically.<br />

side a>0 is used to model the positive response of dark-bright edges. Figure 4.18 shows<br />

some examples that visualize Equation 4.14 and the effect of the different parameters.<br />

Template Dimension A constant template width of 11pixels is used, which is large<br />

enough to represent both straight and maximal curved tube boundaries. The template<br />

height is defined over the global ROI height. Assuming the guide bars are always arranged<br />

so that the guide bar distance is only slightly larger than the tube’s perimeter, the global<br />

ROI height is a good reference on the tube size. It is possible to compute a well guess of<br />

the tube height by the following equation:<br />

where HROIG<br />

HT = γHROIG<br />

is the global ROI height and γ a factor between 0 and 1.<br />

(4.15)<br />

Curvature Thequestionis,whatrangeofcurvaturesoccursinpracticeandhowmany<br />

templates are needed to cover that range. Therefore, several test sequences with both<br />

black and transparent tubes of different diameter have been captured. 30 templates of<br />

different curvature have been generated for both tube sides. The parameters can be found<br />

in Table 4.3.<br />

Foreachmeasurableframethecurvatureofthetemplatethatreachesthemaximum<br />

correlation value is taken into account to build a histogram of curvature occurrence both<br />

for the left and ride tube side. The normalized cross-correlation (see Equation 2.31) is<br />

used as measure evaluating the match quality of each template at a certain location. The<br />

results can be found in Figure 4.19.<br />

It shows, the occurring curvatures are limited to a small range denoted as Rψ, left and<br />

Rψ, right with Rψ, left =[0, 0.005] for the left and Rψ, right =[−0.005, 0] for the right<br />

side respectively. In order to reduce the number of templates all curvatures outside this<br />

range can be ignored.<br />

Another important criteria is the step size or curvature resolution χ, i.e. how many<br />

steps between ψmin and ψmax are taken into account. Theoretically one could quantize<br />

the curvature ranges into very small steps. However, since correlation is an expensive<br />

operation one has to make a compromise between accuracy and performance. It was<br />

observed that if more than 15 templates have to be tested at each tube side per frame, the<br />

system starts to drop frames, i.e. this is a quantitative indicator that the overall processing<br />

time exceeds the current frame rate. Therefore the total number of templates is restricted<br />

to 10 in this application. The corresponding step size between two curvatures is 0.0005.

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

Saved successfully!

Ooh no, something went wrong!