1
COMP 546
Lecture 17
Linear Systems 2:
Fourier transform, filtering, convolution theorem
- Tues. March 20, 2018
Linear Systems 2: Fourier transform, filtering, convolution theorem - - PowerPoint PPT Presentation
COMP 546 Lecture 17 Linear Systems 2: Fourier transform, filtering, convolution theorem Tues. March 20, 2018 1 Recall last lecture convolution special behavior of sines and cosines complex numbers and Eulers formula Today
1
1
1 1 = ๐ฃ ๐ค ๐ฆ ๐ง
1 2
1 1
= ๐ฃ ๐ค ๐ฆ ๐ง
Example: 1 2 ๐ฃ ๐ค ๐ฆ ๐ง
1 1 1 -1 = ๐ฝ 0 ๐ฝ(1) ๐ฝ 0 ๐ฝ(1)
Example: ๐ฝ 0 ๐ฝ 1 ๐ฝ 0 ๐ฝ 1
1 1 1 -1 = ๐ฝ 0 ๐ฝ(1) ๐ฝ 0 ๐ฝ(1)
1 2
Fourier transform
map N-dimensional delta function (impulse function) basis to an N-dimensional sinusoid function basis
Inverse Fourier transform
๐ฝ 0 : : ๐ฝ(๐ โ 1)
๐ฝ 0 : : ๐ฝ(๐ โ 1)
๐ฆ=0 ๐โ1
11
Let ๐ฝ(๐ฆ) and โ(๐ฆ) be defined on ๐ฆ โ 0, 1, โฆ , ๐ โ 1 . See lecture notes for proof.
12
Let ๐ฝ(๐ฆ) and โ(๐ฆ) be defined on ๐ฆ โ 0, 1, โฆ , ๐ โ 1 .
Convolving an image ๐ฝ ๐ฆ with a filter โ ๐ฆ changes the amplitude and phase of each frequency component.
16
๐ ๐ ๐ 2 โ ๐
Only consider up to N/2 because of the conjugacy property (coming soon).
17
๐ ๐ ๐ 2 โ ๐
18
๐ ๐1 ๐ 2 ๐2
โ ๐
19
20
For any positive or negative integer ๐,
๐ ๐ ๐ + ๐ ๐ โ ๐
etc
For any positive or negative integer ๐, Proof: Use this:
๐ (๐+๐๐) ๐ฆ
๐ ๐๐ฆ ๐ โ๐ 2 ๐ ๐ ๐๐๐ฆ
๐ฆ=0 ๐โ1
๐ ๐ ๐ฆ
๐ฆ =โ๐ 2 ๐ 2โ1
๐ ๐ ๐ฆ
๐ (๐ฆ+๐๐) ๐
๐ ๐๐ฆ ๐ โ๐ 2 ๐ ๐ ๐๐๐
Local Difference:
โ 1 2 , ๐ฆ = 1
1 2 ,
0,
1 2 ,
0,
๐ฆ=0 ๐โ1
๐ ๐ ๐ฆ
Local Average:
1 2 ,
0,
1 4 , ๐ฆ = โ1, 1
1 2 ,
0,
๐ฆ = 0
๐ฆ=0 ๐โ1
๐ ๐ ๐ฆ
(Sketched on blackboard. See lecture notes)
๐ ๐0 ๐ 2 โ ๐ (Done on blackboard. See lecture notes.)
Use Eulerโs formula and Example 4. Also, recall the conjugacy property.
38
2 ๐ฆ ๐
2
39
2 ๐ฆ ๐
2
with equality in the limit as distance between samples goes to 0 and N goes to infinity, i.e. continuous Fourier transform.
Note the inverse relationship
2 2 ๐ ๐ ๐ ๐
2
40
41
2
1 ๐ ๐ฎ ๐ฝ ๐ฆ โ ๐ฎ โ ๐ฆ
42
43
cos 2๐ ๐ ๐0๐ฆ = ๐ 2 ๐ ๐ โ ๐0 + ๐(๐ + ๐0 )
โ1 2 2 ๐ ๐ ๐ ๐
2
๐ ๐๐๐ก๐ป๐๐๐๐ ๐ฆ, ๐ โ ๐ 2 ( ๐
โ1 2 2 ๐ ๐ (๐โ ๐0) ๐
2
+ ๐
โ1 2 2 ๐ ๐ (๐+ ๐0) ๐
2
) See lecture notes for proof, and formula for sine Gabor.
N = 128, k0 = 20, sigma = 5