20.01.2013 Views

Master Thesis - Department of Computer Science

Master Thesis - Department of Computer Science

Master Thesis - Department of Computer Science

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.

2. Compute the gradients ϱx(i, j) and ϱy(i, j) at each pixel (i, j). The gradient<br />

operation in our case is done by sobel operator.<br />

3. Estimate the local orientation <strong>of</strong> each block centered at pixel (i, j) using the<br />

following equation,<br />

γx(i, j) =<br />

γy(i, j) =<br />

i+ W<br />

2<br />

�<br />

u=i− W<br />

2<br />

i− W<br />

2<br />

�<br />

u=i− W<br />

2<br />

θ(i, j) = 1<br />

2 tan−1<br />

j+ W<br />

2<br />

�<br />

v=j− W<br />

2<br />

j− W<br />

2<br />

�<br />

v=j− W<br />

2<br />

� γy(i, j)<br />

γx(i, j)<br />

2ϱx(u, v)ϱy(u, v), (A.4)<br />

�<br />

ϱ 2 x (u, v)ϱ2y (u, v)� , (A.5)<br />

�<br />

. (A.6)<br />

where θ(i, j) is the least square estimate <strong>of</strong> the local ridge orientation at the<br />

block centered at pixel (i, j) and represents the direction which is orthogonal<br />

to the dominant direction <strong>of</strong> the Fourier spectrum <strong>of</strong> the W × W window.<br />

4. Noise, corrupted ridge and valley structures may result incorrect estimation<br />

<strong>of</strong> local ridge orientation. As local ridge orientation varies slowly in a local<br />

neighborhood low-pass filtering can be used to correct θ(i, j). For low-pass<br />

filtering the orientation image is converted to a continuous vector field and is<br />

defined as,<br />

Φx(i, j) = cos(2θ(i, j)), (A.7)<br />

Φy(i, j) = sin(2θ(i, j)). (A.8)<br />

where Φx(i, j) and Φy(i, j) are the x and y components <strong>of</strong> the vector field,<br />

respectively. The low-pass filtering can be done as follows,<br />

Φ ′ x (i, j) =<br />

Φ ′ y (i, j) =<br />

D Φ<br />

2�<br />

u=− D Φ<br />

2<br />

D Φ<br />

2�<br />

u=− D Φ<br />

2<br />

D Φ<br />

2�<br />

v=− D Φ<br />

2<br />

D Φ<br />

2�<br />

v=− D Φ<br />

2<br />

D(u, v)Φx(i − uW, j − vW ), (A.9)<br />

D(u, v)Φy(i − uW, j − vW ). (A.10)<br />

where D is a two-dimensional low-pass filter with unit integral and DΦ × DΦ<br />

specifies the size <strong>of</strong> the filter.<br />

5. Compute the local ridge orientation at (i, j) using,<br />

O(i, j) = 1<br />

2 tan−1<br />

� �<br />

′ Φ y(i, j)<br />

126<br />

Φ ′ x (i, j)<br />

(A.11)

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

Saved successfully!

Ooh no, something went wrong!