Lect5-Fourier Transforms in 2D
Lect5-Fourier Transforms in 2D
Lecture 5
Fourier Transforms of 2D signals
Slides modified from materials provided by Drs. Yiming Xiao & Tien Bui
Frequency domain representation
High frequency
• The frequency domain analysis
refers to the analysis of signals wrt.
their frequency components.
2
Frequency domain representation
s(x)
S(f)
Just 6 scalars! 3
https://en.wikipedia.org/wiki/Fourier_series
Examples of Fourier Transform
4
Give this try yourself
Fourier transform
(a>0) scaling
http://www.cs.cornell.edu/courses/cs5540/2010sp/lectures/Lec5.Transforms.pdf
6
Fourier transform: magnitude & phase
Power spectrum:
7
Example: Fourier transform of a simple continuous function
Review: Linear Systems [Lecture#02]
System Characterization (Con’t)
The term inside the inner brackets is the Fourier transform of the term h(x - a ).
But,
Review: Linear Systems [Lecture#02]
System Characterization (Con’t)
so,
and
where " " is used to indicate that the quantity on the right is obtained by
taking the Fourier transform of the quantity on the left, and, conversely, the
quantity on the left is obtained by taking the inverse Fourier transform of the
quantity on the right.
Sampling Theorem
overlapping now
13
Sampling Theorem - Nyquist Theorem
Or: the max frequency can be captured by sampling at the rate of:
14
Aliasing
What happens if a band-limited function is sampled at a rate less than
twice the highest frequency?
15
Discrete Fourier Transform (1-D)
Let us define a set of orthonormal basis vectors
Discrete Fourier
Fourier transform
Transform pair
16
Discrete Fourier Transform (1-D)
DFT
17
Example: Discrete Fourier Transform (1-D)
19
Signals, Systems and Transforms
System
x[n] T y[n]
Input Output
Transform
20
Signals, Systems and Transforms
Given a LTI system T, we can easily obtain output signal for all possible input signals x[n]
from the Impulse response!
22
Computation of Correlation and Convolution (1-D)
23
Examples of convolution operations between function f and g
f*g
Square functions
Gaussian functions
24
Examples of convolution operations between function f and g
25
Convolution Theorem - revisit
26
Reverse: The inverse FT of gives the convolution of
the two functions in spatial domain.
In General:
27
2-D D.F.T
28
Computation of 2D-DFT
• Fourier transform matrix:
1 1 1 · · · 1
2 N-1
1 W W · · · W N
N N
· · · ·
· · · ·
· · · · 2
N-1 2(N-1) (N-1)
1 WN WN · · · W N
where
Computation of 2D-DFT
• Inverse Fourier transform matrix:
where
1 1 1 · · · 1
-1 -2 1-N
1 W W · · · W N
N N
· · · ·
· · · ·
· · · ·
2
1-N 2(1-N) - (N-1)
1 W W · · · W N
N N
Computation of 2D-DFT
• Example. N = 4:
• Inverse 1D-DFT:
• Inverse 2D-DFT:
How to compute 2D D.F.T ?
1. Direct Method
2. Row/Column Decomposition
3. Fast Fourier Transform (FFT)
35
How to compute 2D D.F.T ?
Direct Method
N2
N1
Assuming N1 = N2 = N,
For each (k1,k2), we need N2 multiplications and N2 adds
For all pairs of (k1,k2), we will need N4 multiplications and N4 adds
36
How to compute 2D D.F.T ?
Row/column decomposition
N2
N1
1-D DFT
• By varying n2 from 0 to N-1, we compute a set of 1-D DFTs for all rows of f(n1,n2)
• The 2D-DFT is just the 1-D transforms of columns of f(k1,n2)
1-D
N1-point DFT
….. …..
n1 k1
0 (N1-1) 0 (N1-1)
n2 k2
f(k1,n2) x(k1,k2)
(N2-1) (N2-1)
1-D
N2-point DFT
….. …..
k1 k1
0 (N1-1) 38
0 (N1-1)
After J.S.Lim: 2-D Signal and Image Processing
How to compute 2D D.F.T ?
Fast Fourier Transform (FFT) N2
(N/2)log2N multiplications
N log2N additions
N=2048
92 million mult for FFT
1 trillion for direct method
moiré-like patterns
44
Newspaper printing (75dpi)
Systems and Transforms (2-D)
• Transform (Operator): input into output
• Linear System (Operator)
• Impulse Response
(2-D convolution)
Correlation
Convolution
Phase vs. Magnitude
50
Properties of 2D Fourier Transform
51
Intuitive experience with 2D FT
52
Change in magnitude
translation
rotation
53
Change in phase maps
54
DFT
DFT
DFT
55
DFT
Gaussian
DFT
Dot grid
58
Reading materials
• Textbook Chapter 4
59
Questions
60