Lecture 7
Lecture 7
Spring 2020
2 / 40
2D Sampling and 2D Sampling Theorem
1
>2u max
ΔT
1
>2 v max
ΔZ
3 / 40
2D Aliasing – Example
4 / 40
Summary of DFT Definitions
5 / 40
Summary of DFT Pairs
6 / 40
Fourier Spectrum and Phase Angle – Example
7 / 40
Basics of Filtering in the Frequency Domain
8 / 40
Steps for Filtering in the Frequency Domain
9 / 40
Steps for Filtering in the Frequency Domain
10 / 40
Filtering in the Frequency Domain - Examples
11 / 40
Filtering in the Frequency Domain - Examples
12 / 40
Filtering in the Frequency Domain - Examples
13 / 40
Image Smoothing Using Lowpass Frequency
Domain Filters
● Edges and sharp intensity transitions such as noise, contribute to high
frequency components in the frequency domain.
● Smoothing (blurring) is achieved by high-frequency attenuation, or lowpass
filtering.
● Three types of filters will be discussed here:
– Ideal lowpass filter (ILPF)
– Gaussian lowpass filter (GLPF)
– Butterworth lowpass filter (BLPF)
● Butterworth filters are controlled by a parameter called the filter order.
● Large values of the filter order, results in shapes similar to the ideal lowpass
filter, while smaller values result in shapes similar to a Gaussian lowpass
filter.
14 / 40
Ideal Lowpass Filter (ILPF)
15 / 40
Ideal Lowpass Filter (ILPF)
P (u , v )
● The percentage is calculated as: α =100 ∑ PT
(u , v)∈D0
Fourier spectrum
Rings of radii 10, 30, 60,
160, 460 pixels,
corresponding to 87%,
93%, 96%, 98%, 99% of
the total image power.
16 / 40
Ideal Lowpass Filter (ILPF) - Examples
17 / 40
Ideal Lowpass Filter (ILPF) - Limitations
18 / 40
Gaussian Lowpass Filter (GLPF)
19 / 40
Gaussian Lowpass Filter (GLPF) - Examples
20 / 40
Butterworth Lowpass Filter (BLPF)
21 / 40
Butterworth Lowpass Filter (BLPF) - Examples
22 / 40
Butterworth Lowpass Filter (BLPF)
23 / 40
Lowpass Filtering – Additional Examples
24 / 40
Lowpass Filtering – Additional Examples
25 / 40
Lowpass Filtering – Additional Examples
26 / 40
Image Sharpening Using Highpass Frequency
Domain Filters
● Edges and sharp intensity transitions contribute to high frequency
components in the frequency domain.
● Image sharpening can be achieved by highpass filtering, which attenuates
low-frequency components without disturbing high-frequency components.
● Here, we discuss:
– Ideal highpass filter (IHPF)
– Gaussian highpass filter (GHPF)
– Butterworth highpass filter (BHPF)
– Laplacian in Frequency Domain
– Unsharp Masking and High-Boost Filtering
27 / 40
Ideal, Gaussian and Butterworth Highpass Filters
0 if D (u , v) D0
● IHPF: H (u , v)
1 if D(u, v) D0
D 2 ( u ,v )
2 D02
● GHPF: H (u, v) 1 e
1
● BHPF: H (u , v) 2n
D0
1
D(u , v)
28 / 40
Ideal, Gaussian and Butterworth Highpass Filters
29 / 40
Ideal, Gaussian and Butterworth Highpass Filters -
Examples
30 / 40
Ideal, Gaussian and Butterworth Highpass Filters -
Examples
31 / 40
Laplacian in Frequency Domain
2 2 f 2 f
f 2 2
x y
● Its Fourier transform can be written as:
H (u , v) 4 2 (u 2 v 2 )
● Given that we center our FTs, we can rewrite it as:
H (u, v) 4 2 [(u P / 2) 2 (v Q / 2) 2 ] 4 2 D 2 (u, v)
with
1
2
D(u , v) (u P / 2) (v Q / 2)
2 2
32 / 40
Image Sharpening Using Laplacian Operator
33 / 40
Unsharp Masking and High-Boost Filtering
● Remember the equations for unsharp masking (k=1) and high-boost filtering
(k>1):
g ( x, y ) f ( x, y ) k * g mask ( x, y )
g mask ( x, y ) f ( x, y ) f LP ( x, y )
),(yxfg
● We have:
f LP ( x , y)=IDFT {H LP (u , v ) F (u , v )}⇒ g mask ( x , y )=IDFT {F (u , v)−H LP (u , v ) F (u , v )}
● Therefore:
g ( x , y ) = IDFT {(1+k [1−H LP (u , v)]) F (u , v)}
= IDFT {[1+kH HP (u , v)] F (u , v)}
34 / 40
Selective Filtering
35 / 40
Selective Filtering: Notch Filters
36 / 40
Fast Fourier Transform (FFT)
37 / 40
Fast Fourier Transform
2p
C ( p)=
p
38 / 40
What is Next?
39 / 40
Questions?
[email protected]
40 / 40