Image Filtering
Image Filtering
Purpose:
Image Enhancement
Noise Removal
Edge Enhancement/Detection
Images
An image is a matrix of points called pixels
Resolution
640 X 480 ( 0.3 MegaPixels)
1600 X 1200 ( 2 MegaPixels)
3872 X 2592 (10 MegaPixels)
Grayscale: generally 8 bits per pixel Intensities in range
[0255]
RGB color: 3 of 8-bit color planes: IR , IG , IB
Images
Example of a grayscale image intensity I(x,y)
x
255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255
20
75
75
255 255
75
95
95
255 255
255 255 127 145 175 175 175 255 255 255 255 255
95
47 255 255
95
47 255 255
255 255
47 255 255
74
74
74
95
95
95
74
74
255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255
Simple 3*3
Neighbourhood
Original Image
Pixels
e
3*3 Filter
Image I (x, y)
Filter
eprocessed = v*e +
r*a + s*b + t*c +
u*d + w*f +
x*g + y*h + z*i
1/
1/
1/
1/
1/
1/
1/
1/
1 1 1 7 7 7 7 7 7
8 5 8 8 5 8
1
8 5 8 8 5 8
1
1
1
7 7 7 7 7 7
9
1 1 1 7 7 7 7 7 7
8 5 8 8 5 8
Original
33
99
2/
16
1/
16
2/
16
4/
16
2/
16
1/
16
2/
16
1/
16
Original
image
Mean
Gaussian
2, 3, 3, 4, 6, 7, 7, 7, 8
Noisy image
0 0 0
0 2 0
0 0 0
1 1 1
1 1 1
1 1 1
Edge Detection
Edge Detection
Directional Edge Detection
Simple mask for:
horizontal edges
-1
vertical edges
-1
1
0
0
0
1
2
1
-1
0
1
-2
0
2
-1
0
1
Iy
Ix
Ix
Iy
I x2 I y2
Image I(x, y)