Mid Exam (Digital Image Processing)
Mid Exam (Digital Image Processing)
Mid Exam (Digital Image Processing)
Name: M.Shahzaib
Class: Bs Computer Science(Evening)
Roll No: 17-NTU-1189
Course Name: Digital Image Processing
Course Code: CSE-4071
Assigned Topic: Roles of Spatial Filtering
Submitted to: Sir Abdul Qayum
SPATIAL FILTERING
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.
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.
T[f(1,2)]=(255+255+255+255+0+225+255+255+255)/9
g(x,y)=T[f(x,y)]
T=compute average intensity of neighborhood pixels
T[f(1,2)]=(255+255+255+255+0+225+255+255+255)/9
T[f(1,2)]=227=g(1,2)
Thanks….