Spatial Filtering - 1
Spatial Filtering - 1
Spatial Filtering technique is used directly on pixels of an image. Mask is usually considered
to be added in size so that it has specific center pixel. This mask is moved on the image such
that the center of the mask traverses all image pixels.
General Classification:
Smoothing filter is used for blurring and noise reduction in the image. Blurring is pre-
processing steps for removal of small details and Noise Reduction is accomplished by
blurring.
1. Mean Filter: Linear spatial filter is simply the average of the pixels contained in the
neighborhood of the filter mask. The idea is replacing the value of every pixel in an
image by the average of the grey levels in the neighborhood define by the filter
mask. Below are the types of mean filter:
2. Order Statistics Filter: It is based on the ordering the pixels contained in the image
area encompassed by the filter. It replaces the value of the center pixel with the
value determined by the ranking result. Edges are better preserved in this filtering.
Below are the types of order statistics filter:
Minimum filter: 0th percentile filter is the minimum filter. The value of the
center is replaced by the smallest value in the window.
Maximum filter: 100th percentile filter is the maximum filter. The value of the
center is replaced by the largest value in the window.
Median filter: Each pixel in the image is considered. First neighboring pixels
are sorted and original values of the pixel is replaced by the median of the
list.
It is also known as derivative filter. The purpose of the sharpening spatial filter is just the
opposite of the smoothing spatial filter. Its main focus in on the removal of blurring and
highlight the edges. It is based on the first and second order derivative.