Professional Documents
Culture Documents
Digital Image Processing
Digital Image Processing
Processing
Restoration of noise-only degradation
Filters to be considered
2
Restoration using Spatial Filtering
We can use spatial filters of different kinds to remove different
kinds of noise.
ˆ 1
f (x, y) mn (s,t )S g(s,t)
xy
Implemented as simple
smoothing filter
Well Suited for Gaussian / Uniform Noise
Geometric Mean Filter
mn
ˆ
f (x, y) g(s,
( s,t )S
t) xy
Harmonic Mean Filter
Works well for salt noise but fails for pepper noise.
mn
fˆ(x, y) 1
g(s,t)
(s,t ) xy
S
Example:
Image
Original Corrupted
By Gaussian
Image Noise
After A After A
3*3 3*3
Arithmetic Geometric
Mean Filter Mean Filter
Contra-harmonic mean filter
7
Classification of contra-harmonic filter applications
8
Contra-harmonic mean filter (example)
9
Order Statistic Filter
12
Max and Min filter
14
Alpha-Trimmed Mean Filter
1
ˆ
f (x, y) mn g r (s,t)
(s,t )S xy
Here deleted the α/2 lowest and highest grey levels, so g (s, t) represents
α/2 r
the remaining mn – α pixels
Alpha-Trimmed Mean Filter
Image Result of 1
Corrupted Pass With A
By Salt And 3*3
Pepper Noise Median
Filter
Result of 2 Result of 3
Passes With Passes With
A 3*3 Median A 3*3 Median
Filter Filter
Example:
Image
Image Corrupted
By Salt
Corrupted Noise
By
Pepper
N
oise
Result Of
Result Of
Filtering
Filtering
Above
Above
With A
With A
3*3 Min
3*3 Max
Filter
Filter
Example (Combined):
Image Image Further
Corrupted Corrupted
By Uniform By Salt and
Noise Pepper Noise
Filtered By Filtered By
5*5 5*5 Geometric
Arithmetic Mean Filter
Mean Filter
Filtered By Filtered By
5*5 Median 5*5 Alpha-
Filter Trimmed Mean
Filter
Adaptive Filters
• The key insight in the adaptive median filter is that the filter
size changes depending on the characteristics of the image
Adaptive Median Filtering (cont…)
Bandreject Filter
Bandpass Filters
Notch Filter
Bandreject Filter
A band reject filter blocks frequencies within the chosen range and lets
frequencies outside of the range pass through.
Removes / Attenuates a band of frequencies about the origin of the
Fourier Transform.
H(u,v) = 1 D0- w
2
D(u,v) D0 + w2
w
0 D(u,v) > D0 + 2
D(u,v) = u2 + v2
D0 = cut off frequency
w = band width
H(u,v) H(u,v)
1
v
D(u,v)
0 D0- w D0 D0+w
2 2
u
20 20
40 40
THANK
60 60
20 40 60 20 40 60
inverse filter Wiener filter, K=0.2
20 YOU 20
40 40
60 60
20 40 60 20 40 60