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.

28 CHAPTER 2. TECHNICAL BACKGROUND<br />

(a)<br />

300<br />

250<br />

200<br />

150<br />

100<br />

50<br />

0<br />

Interpolated<br />

subpixel<br />

edge location<br />

Discrete 1st derivative<br />

Spline Interpolation<br />

Edge Profile<br />

50<br />

0 2 4 6 8 10 12 14 16 18<br />

x<br />

Figure 2.9: (a) Subpixel accuracy using bilinear interpolation. Pixel position P is a local<br />

maximum if the gradient magnitude of gradient g at P is larger than at the positions A<br />

and B respectively. These positions can be computed using bilinear interpolation between<br />

the neighboring pixels 0, 7and3, 4 respectively. The gradient direction determines which<br />

neighbors contribute to the interpolation. The edge direction is perpendicular to the gradient<br />

vector. (b) The discrete first derivative of a noisy step edge is approximated using cubic<br />

spline interpolation. The subpixel tube edge location is assumed to be at the maximum of the<br />

continuous spline function, which can lie in between two discrete positions (here at x =9.5).<br />

Interpolation is the most common technique to compute values between pixels by consideration<br />

of the local neighborhood of a pixel. This includes for example bilinear, polynomial,<br />

or B-spline interpolation. In [21], a linear interpolation of the gradient values within<br />

a3× 3 neighborhood around a pixel is proposed. Here, the gradient direction determines<br />

whichofthe8neighborsareconsidered(seeFigure2.9(a)). Sincethegradientdoesnot<br />

have to fall exactly on pixel positions on the grid, the gradient value is interpolated using<br />

a weighted sum of the two pixel positions respectively that are next to the position where<br />

the gradient intersects the pixel grid (denoted as A and B in the figure). In a nonmaximum<br />

suppression step, the center pixel is classified as edge pixel only if the gradient magnitude<br />

at this position is larger than at the interpolated neighbors. If so, the corresponding edge<br />

is perpendicular to gradient direction.<br />

Since the center pixel P lies still on the discrete pixel grid, one has to perform a second<br />

interpolation step, if higher precision is needed. The image gradient within a certain<br />

neighborhood along the gradient direction (e.g. A-P -B) can be approximated for example<br />

by a one-dimensional spline function [17, 66]. Figure 2.9(b) shows an example of a noisy<br />

step edge between the discrete pixel positions 9 and 10 in x-direction. The discrete first<br />

derivative of intensity profile is approximated with cubic splines. The extremum of this<br />

continuous function can be theoretically detected with an arbitrary precision representing<br />

the subpixel edge position. However, there are obviously limits of what is still meaningful<br />

with respect to the underlying input data. In this example, a resolution of 1/10 pixel was<br />

used. The maximum is found at 9.5, i.e. exactly in between the discrete positions.<br />

Rockett [56] analyzes the subpixel accuracy of a Canny implementation that uses interpolation<br />

by least-square fitting of a quadratic polynomial to the gradient normal to the<br />

detected edge. He found out that for high-contrast edges the edge localization reaches an<br />

(b)

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

Saved successfully!

Ooh no, something went wrong!