Neighbourhood Averaging Smoothening Filter
The neghbourhood averaging filter is simply implemented
using a square mask of various sizes. The blurring effect of the filter
becomes obvious as the size of the mask is increased.
When the mask is at pixels near the boundary of the image then the porions
of the mask outside the mask were neglected and the
averaging factor adjusted accordingly.
|
|
|
|
The filter also works exactly similarly on color images.
|
|
|
|
Median Smoothening Filter
The median smoothening filter replaces the pixel at
the center of the mask by the median of all the pixel values in the mask.
The pixels in the mask are sorted first using Quicksort.
The blurring effect of the median filter is less than the averaging
filter as can be clearly observed.Also clearly visible
is that median filter prserve edge sharpness. Only disadvantage is that
they take significantly more time to apply.
|
|||
|
|
|
|
This filter also works exactly simlarly on color images.
|
|
|
|
Page last updated on 28 January, 2004. | AT cse.iitd.ac.in | © Parag Chaudhuri , 2009 |