06.03.2013 Views

Artificial Intelligence and Soft Computing: Behavioral ... - Arteimi.info

Artificial Intelligence and Soft Computing: Behavioral ... - Arteimi.info

Artificial Intelligence and Soft Computing: Behavioral ... - Arteimi.info

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1. Move the mask over the image, so that the central (x, y) pixel of the<br />

mask is merged with a pixel of the image. The boundary pixels of<br />

the image, however, cannot not be merged with the central pixel of<br />

the mask.<br />

2. Evaluate the changed gray level at pixel (x, y) by taking the sum of<br />

the product of the mask weights <strong>and</strong> the gray level at the<br />

corresponding pixels <strong>and</strong> save it.<br />

3. If all feasible pixels on the image have been visited, replace the old<br />

gray levels by the corresponding new (saved) values <strong>and</strong> stop, else<br />

continue from step 1.<br />

Among the other smoothing algorithms, most common are mean <strong>and</strong><br />

median filters. The mean filter takes the average of the gray levels of all 8neighboring<br />

pixels to compute the changed gray level at pixel (x, y). The<br />

median filter, on the other h<strong>and</strong>, replaces the current gray level of pixel (x, y)<br />

by the median of its 8 neighborhood pixels. Experimental evidences show that<br />

mean filter blurs the image, but the median filter enhances the sharpness of<br />

the image.<br />

17.2.2 Finding Edges in an Image<br />

An edge is a contour of pixels that (artificially) separates two regions of<br />

different intensities. It also can be defined as a contour along which the<br />

brightness in the image changes abruptly. Fig. 17.3 describes the edges in a<br />

synthetic image.<br />

Fig. 17.3: Edges in a synthetic image.<br />

edges

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

Saved successfully!

Ooh no, something went wrong!