Professional Documents
Culture Documents
04.DIP. Filtering - Frequency
04.DIP. Filtering - Frequency
Thanh-Hai Tran
2020 2
Outline
n Background
u Fourier transform
u Convolution
2020 3
Fourier Transform
n Fourier transform: a
continuous signal can be
represented as a
(countable) weighted
sum of sinusoids.
2020 4
Fourier Transform
n Fourier transform: a
continuous signal can be real(g(wx)) image(g(wx))
represented as a
(countable) weighted w =0
sum of sinusoids.
n 1-D continuous FT
w =7
2020 5
Convolution
n Fourier transform
2020 6
Discret Fourier Transform
2020 7
Fourier transform of a sampled function
2020
Extracting one period of the transform
2020
DFT from Continous transform of a
sampled function
n Fourier transform of a sampled, band-limited function
from (-∞, ∞) is a continous, periodic function that
extend from (-∞, ∞)
2020 10
Discrete convolution
n For x = 0, 1, 2, … M-1
n Extention to 2D signal
2020 11
Properties of 2D DFT
u Rotation
2020 13
Periodicity
2020
Fourier spectrum and Phase angle
n Fourier transform
n Fourier spectrum
n Phase angle
n Zero-frequency term:
2020 15
2D DFT of image
2020
Fourier spectrum
2020 17
Phase angle
2020 18
Fourier spectrum and phase angle
2020 19
Fourier spectrum and phase angle
2020
Convolution
2020 21
2D Fourier Transform
2020 22
From 1D to 2D
1D 2D
2020 23
Convolution of two discrete functions
2020
Example
25
2020
Example
2020
Outline
n Background
n Basics of filtering in frequency domain
u Characteristics
of frequency domain
u Frequency domain filtering fundamentals
n Filtering
2020
Steps for filtering in frequency domain
2020
Zero padded filter and response
2020
Corresponding between Spatial and
Frequency filters
2020
observation 1: compacting energy
2020
observation 2: amplitude vs. phase
A = “Aron” P = “Phyllis”
FA = fft2(A) FP = fft2(P)
log(abs(FA)) log(abs(FP))
angle(FA) angle(FP)
2020
Spatial filtering vs. Frequency fintering
2020
Outline
n Background
n Basics of filtering in frequency domain
n Image Smoothing in frequency domain
u IdealLowpass Filters
u Butterworth Lowpass Filters
2020 38
Smoothing filters: Ideal low-pass
2020 39
Butterworth filters
2020
Gaussian filters
41
2020
Low-pass filter examples
2020
smoothing filter application 1
text enhancement
2020 43
smoothing filter application 2
beautify a photo
2020
DFT application #1: fast Convolution
? ?
O(N2)
Spatial filtering
f(x.y)*h(x.y)
2020 45
DFT application #1: fast convolution
Spatial filtering
f(x.y)*h(x.y)
O(N4)
2020 46
Outline
n Background
n Basics of filtering in frequency domain
n Image Smoothing in frequency domain
n Image Sharpening in frequency domain
u IdealHighpass Filters
u Butterworth Highpass Filters
n Reference
2020 47
High-pass filters
2020
Sobel operator in frequency domain
Question:
Sobel vs. other high-
pass filters?
Spatial vs frequency
domain
2020 49
High-pass filter examples
50
2020
References
2020 51