Professional Documents
Culture Documents
FALLSEM2022-23 CSE4019 ETH VL2022230104728 2022-08-17 Reference-Material-I
FALLSEM2022-23 CSE4019 ETH VL2022230104728 2022-08-17 Reference-Material-I
in Spatial Domain
Spatial Filtering
Image Enhancement Methods
99 106 98
95 90 85
* 1/
1/
9
1/
1/
9
1/
1/
9
9 9 9
1/ 100
104
9
1/ 108
9
1/
9
Original Image Filter
Simple 3*3 1/ 1/ 1/
3*3 Smoothing Pixels
999 106
9 989
Neighbourhood 195
/9 190
/9 185
/9
Filter
e = 1/9*106 +
1/ *104 + 1/ *100 + 1/ *108 +
9 9 9
1/ *99 + 1/ *98 +
9 9
y Image f (x, y) 1/ *95 + 1/ *90 + 1/ *85
9 9 9
= 98.3333
The above is repeated for every pixel in the original
image to generate the smoothed image
Image Smoothing Example
Weighted
averaging filter
Another Smoothing Example
•By smoothing the original image we get rid of lots of the finer
detail which leaves only the gross features for thresholding
Filtered Image:
Zero Padding
Filtered Image:
Wrap Around Edge Pixels
Examples
• Zero Padding • Pixel Replication
00000 11233
01230 11233
04560 44566
07890 77899
00000 77899
• Wrapping of pixels
97897
31231
64564
97897
31231