L6 Fourier
L6 Fourier
Fourier Transform
xkcd.com
How to Represent Signals?
• Option 1: Taylor series represents any function using
polynomials.
Asin(x + )
• Add enough of them to get
any signal f(x) you want!
Fourier
f(x) F()
Transform
• For every from 0 to inf, F() holds the amplitude A and phase of
the corresponding sine
Asin(x + )
– How can F hold both? Complex number trick!
F ( ) = R( ) + iI ( )
I ( )
A = R( ) + I ( )
2 2
= tan−1
R( )
Inverse Fourier
F() f(x)
Transform
Time and Frequency
= +
Frequency Spectra
= +
Frequency Spectra
= +
=
Frequency Spectra
= +
=
Frequency Spectra
= +
=
Frequency Spectra
= +
=
Frequency Spectra
= +
=
Frequency Spectra
1
= A sin(2 kt )
k =1 k
Frequency Spectra
FT: Just a change of basis
M * f(x) = F()
* =
.
.
.
IFT: Just a change of basis
* =
.
.
.
Fourier Transform – more formally
Represent the signal as an infinite weighted sum
of an infinite number of sinusoids
F (u ) = f (x )e −i 2ux
dx
−
F (u ) = f (x )e −iux
dx
−
f (x ) = F (u )eiux dx
1
2
−
Fourier Transform and Convolution
Let g = f h
Then G(u ) = g (x )e −i 2ux dx
−
= f ( )h(x − )e −i 2ux ddx
− −
f ( )e
= −i 2u
d h( x − )e −i 2u ( x − )dx
− −
=
−
f ( )e −i 2u
d h(x')e
−
−i 2ux '
dx'
= F (u )H (u )
g = f h
IFT FT FT
G = F H
Properties of Fourier Transform
Spatial Domain (x) Frequency Domain (u)
Linearity c1 f ( x ) + c2 g ( x ) c1 F (u ) + c2G (u )
1 u
Scaling f (ax ) F
a a
Shifting f ( x − x0 ) e − i 2ux0 F (u )
Symmetry F (x ) f (− u )
Conjugation f (x ) F (− u )
Convolution f (x ) g (x ) F (u )G (u )
d n f (x )
Differentiation (i 2u )n F (u )
dx n
Note that these are derived using
frequency ( e − i 2ux)
Example use: Smoothing/Blurring
• We want a smoothed function of f(x)
g ( x ) = f ( x ) h( x )
1 x2
h( x ) =
1
exp− 2
2 2
x
• Then H (u )
1 2 2
1
H (u ) = exp− (2u ) 2
2
G (u ) = F (u )H (u ) u
u=-2, v=2 u=-1, v=2 u=0, v=2 u=1, v=2 u=2, v=2
u=-2, v=1 u=-1, v=1 u=0, v=1 u=1, v=1 u=2, v=1
u=-2, v=0 u=-1, v=0 u=0, v=0 u=1, v=0 u=2, v=0
u=-2, v=-1 u=-1, v=-1 u=0, v=-1 u=1, v=-1 u=2, v=-1
u=-2, v=-2 u=-1, v=-2 u=0, v=-2 u=1, v=-2 u=2, v=-2
The wavelength is
1 / u 2 + v. 2 The direction is u/v .
Frequency Bands
Image Fourier Spectrum
Magnitude of the FT
* =
Filtering in frequency domain
FFT
FFT
Inverse FFT
=
Slide: Hoiem
Low-pass Filtering
Let the low frequencies pass and eliminating the high frequencies.
Lets through the high frequencies (the detail), but eliminates the low
frequencies (the overall shape). It acts like an edge enhancer.
Most information at low frequencies!
Fun with Fourier Spectra