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.

140 APPENDIX A. PROFILE ANALYSIS IMPLEMENTATION DETAILS<br />

the global ROI. As can be seen in Figure A.1(e) the global ROI is a bit too large, thus, the<br />

upper and bottom row hits the border of the guide bars. Scan lines through these rows do<br />

not contribute much to the overall profile, but have an effect in normalization. This shift,<br />

however, does not affect the actual tube location. With respect to performance, rows that<br />

have no influence should be ignored.<br />

Obviously the problem with the printing on a tube’s surface comes only with transparent<br />

tubes since the printing is not visible on the black tubes at back light. If black tubes are<br />

inspected, a single scan line in the image center is sufficient to localize the tube correctly,<br />

but more scan lines do not impair the results. To have a more universal solution, the multi<br />

scan line approach is used for all tube types and it is not distinguished at this part of the<br />

system to keep it simple.<br />

A.4. Notes on Convolution<br />

At several steps in the profile analysis a convolution operation is performed. With respect<br />

to the derivation of the profile by convolving with a first derivative Gaussian kernel in step<br />

two, it is important to note what boundary condition is used, since in discrete convolution<br />

there are positions at the image boundaries that are undefined. There are many different<br />

strategies to adopt this problem including padding the image with constant values (e.g.<br />

zero), reflecting the image boundaries periodically or simply ignoring the boundaries [24].<br />

Here, a symmetric reflection strategy is used:<br />

P (−i) = P (i − 1) (A.1)<br />

P (NP + i) = P (NP +1− i); (A.2)<br />

where the first equation is used for the left and the second equation for the right boundary<br />

respectively. NP indicates the length of P and P (x) the intensity value in the profile at<br />

position x. The advantage of this strategy compared to a padding with zeros for example<br />

is that no artificial edges are introduced.

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

Saved successfully!

Ooh no, something went wrong!