Smoothening Filters


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.
 
 
Original Image
Image smoothened by 3x3 mask
Image smoothened by 5x5 mask
Image smoothened by 7x7 mask

The filter also works exactly similarly on color images.
 
Original Image
Image smoothened by 7x7 mask



 

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.
 
 
Original Image
Image smoothened by 3x3 mask
Image smoothened by 5x5 mask
Image smoothened by 7x7 mask

This filter also works exactly simlarly on color images.
 
Original Image
Image smoothened by 7x7 mask




Page last updated on 28 January, 2004. pialpharhoalphagammaAT cse.iitd.ac.in © Parag Chaudhuri , 2009
DCSE, IIT Delhi Valid HTML 4.0! Valid CSS! yahoo