Unit 3 Dip Adaptive
Unit 3 Dip Adaptive
UNIT-III
Adaptive Filters
•The Mean & Variance are two simple statistical measures of a random variable
•The mean gives a measure of average gray level in the region over which the
mean is computed
•The response of the filter at any point (x,y) on which the region is
•Band reject filters remove or attenuate a band of frequencies about the origin of
the Fourier Transform.
• H(u,v) =
1 otherwise
• Where D(u,v) is the distance from the origin of the centered frequency
rectangle. W– width of the band.
• D0->radial center/cutoff freq
• Butterworth Band Reject Filters
1 D 2 u, v D 2
W 0
1 D u, v D0
2
D0 is center of stopband; W is
© 2002 R. C.
full width of stopband
Gonzalez & R. E.
Woods
Band Pass Filters
•A Band Pass Filter performs the opposite operation of a Band reject filter.
•A bandpass filter is a type of electronic filter that allows signals within a
certain frequency range to pass through while attenuating or rejecting
signals outside of that range. This filter is commonly used in various
applications such as audio processing, telecommunications, and signal
processing.
Purpose
Image restoration : Image having added with noise and degraded is
to be restored with its original shape
Optimum Notch Filter
N u,
2 2
k u v
M N
˜
F u, v F u, v where H u, v 2
6
2
v
H u, e
v
Wiener Filter
by
2
fˆ
H * u, vSf u, v
H * u, v
Fˆ u, v G u, v G u, v
S u, v
2
S f u, v H u, v S u, v
2
H u, v
S f u,
v
H(u,v) = degradation function
H u, v
2
1 H*(u,v) = complex conjugate
Fˆ u, v G u, v
H u, v 2 S u, v of H
H u, |H(u,v)|= H*(u,v) H(u,v)
S f u, S(u,v)=|N(u,v)|2=power spectrum of
v
v noise (estimated)
Sf(u,v)=|F(u,v)|2=power spectrum of
original image (not known)
EECS490: Digital Image
Processing
Modeling of
Degradation
Degradati Restoratio
f(x,y f(x,y
on n
) )
Model Filter
Analyze using g = Hf +
algebraic n
techniques W -1 g = DW -1
f+W -
1
n
Formulate
restoration f=H -1
algorithms g
Implement
using Fourier F(u,v) =
transforms G(u,v)/H(u,v)
f(x,y
)
Estimating the degradation function
•There are three ways to estimate the degradation function, for use in image restoration
• Observation
• Experimentation
• Mathematical modeling
Inverse Filtering
•The simple method to restoration is direct inverse filtering
• i.e. even if we know the degradation function, we cannot recover the un-degraded
image exactly as N(u,v) is a random function whose Fourier transform is not known
•At (u,v), H(u,v) ≈ 0
•Hence the second term becomes large
•Thus the noise N(u,v) is amplified
•One method to find the zero or small value problem is to limit the filter frequencies
to values near the origin.
•H(0,0) is equal to the average value of h(x,y)
0.2x
Inverse Filtering
Wiener Filtering
•It is also called as Minimum Mean Square Error filtering
x(t) h(t
s(t) ) y(t)
n(t)
•The Weiner Filter does not have the same problem as the inverse filter with zeroes in the
degradation function, unless both H(u,v) & S(u,v) are zero for the same values of u & v
•The restored image in the spatial domain is given by the Inverse Fourier transform of the
frequency domain estimate F^(u,v)
Weiner Generalization
η(x,y)
Degradation Restoration
Weiner Filt e r C h a r a
D r.V .An ga yar ka nn i
•If the noise is zero, then the noise power spectrum
vanishes & it becomes the Inverse Filter
Filtering - comparison