•Spatialfilteringchangethegreylevelofapixel(x,y)dependingonthe
pixelvaluesinasquareneighborhoodcenteredat(x,y)usinga
matrix(filter,mask,kernel/window).
•Therearemanythingsthatcanbeachievedbyneighborhood
processingwhicharenotpossiblewithpointprocessing.
Image Enhancement
Spatial domain Frequency domain
Point processing Neighbourhood processing
E.g. Negative Image, contrast
stretching, thresholding etc.
E.g. Averaging filter, median filtering
etc.
E.g. Image sharpening using Gaussian
high pass filters, unsharp masking,
highboost filtering etc.
❖Averaging Linear Filtering:
•Toachieveneighborhoodprocessing,a3x3mask(or5x5,7x7….)
ontheimage,multiplyeachcomponentofthemaskwiththe
correspondingvalueoftheimage,addthemupandplacethevalue
thatweget,atthecenter.Theoperationbeingsameasconvolution.
•Thissmoothingprocessisusedforblurringsharpedges.
Input image
Filter mask
Output image
•The two noises are replaced with the average of their surrounding points.
The process of reducing the influence of noise is called smoothing or blurring.