Documente Academic
Documente Profesional
Documente Cultură
Processing
Lecture 11 Dr. Basit Mughal
drmughal75@gmail.com
1
Lowpass Filtering in the
Frequency Domain
Three types of low pass filters:
1. Ideal filters
2. Butterworth filters (parameter: filter
order)
3. Gaussian filters
Ideal Filter (Lowpass)
A 2-D ideal low-pass filter:
1 if D (u , v) ≤ D0
H (u, v) =
0 if D (u , v) > D0
where D0 is a specified nonnegative quantity and
D(u,v) is the distance from point (u,v) to the center of
the frequency rectangle.
D(u , v) = (u − M / 2) + (v − N / 2) )
2 2 1/ 2
Ideal Low pass filter
Ideal Low pass filter:
5.4% 3.6%
power removed power removed
2% 0.5%
power removed power removed
H(u,v) of radius 5 h(x,y) charactersitics
h(x,y)
D(u , v) = (u − M / 2) + (v − N / 2) )
2 2 1/ 2
Sharp Discontinuity
Fax transmission
Duplicate material
Historical records
Example 2 from printing and
publishing industry GLPF
D0 = 100 D0 = 80
H hp (u , v ) = 1 − H lp (u , v )
Transfer function of LP filter
When LP filters attenuates frequencies HP filter passes them and vice versa
1
H (u , v) =
1 + [ D0 / D(u , v)]2n
BHPF with D0=15, 30, 80
• BHPF behave smoother than IHPF
• The boundaries are less distorted than the result of IHPF even for smallest
value of cutoff frequency
• The transition into higher values of cutoff frequencies is mush smoother
with BHPF
Gaussian High Pass Filter
D 2 ( u ,v )
−
H (u , v) = 1 − e 2σ 2
2
D ( u ,v )
− 2
H (u , v) = 1 − e 2 D0
GHPF
Better results than IHPF and BHPF, even the filtering of the smaller
objects and thin bars is cleaner with the Gaussian filter
D0 = 15 D0 = 30 D0 = 80
The Laplacian in Frequency
Domain
{ }
G (u, v) = 1 + (u − M / 2)2 + (v − N / 2)2 F (u , v)
{{ }
g ( x, y ) = ℑ−1 1 − (u − M / 2)2 + (v − N / 2)2 F (u , v) }
Scaled image
Operated in Operated in
frequency domain spatial domain
High boost filtering
In high pass filters average background intensity reduced to near
black because of zero frequency component elimination
g mask ( x , y ) = f (x , y ) − f lp (x , y )
High boost filtering generalized this by multiplying f(x,y) by a constant A ≥ 1
f hb ( x, y ) = Af ( x, y ) − f lp ( x, y )
f hb ( x, y ) = ( A − 1) f ( x, y ) + f ( x, y ) − f lp ( x, y )
f hb ( x, y ) = ( A − 1) f ( x, y ) + f hp ( x, y )
H hp (u , v) = 1 − H lp (u , v)
A = 2.7
A=2
f hb ( x, y ) = ( A − 1) f ( x, y ) + f hp ( x, y )
End Chapter 4
?
MATLAB
MATLAB functions
44
Questions /comments
drmughal75@gmail.com
45