SlideShare a Scribd company logo
Computer Vision
Spring 2012 15-385,-685
Instructor: S. Narasimhan
Wean Hall 5409
T-R 10:30am – 11:50am
Frequency domain analysis and
Fourier Transform
Lecture #4
How to Represent Signals?
• Option 1: Taylor series represents any function using
polynomials.
• Polynomials are not the best - unstable and not very
physically meaningful.
• Easier to talk about “signals” in terms of its “frequencies”
(how fast/often signals change, etc).
Jean Baptiste Joseph Fourier (1768-1830)
• Had crazy idea (1807):
• Any periodic
function can be rewritten as
a weighted sum of Sines and
Cosines of different
frequencies.
• Don’t believe it?
– Neither did Lagrange,
Laplace, Poisson and
other big wigs
– Not translated into
English until 1878!
• But it’s true!
– called Fourier Series
– Possibly the greatest tool
used in Engineering
A Sum of Sinusoids
• Our building block:
• Add enough of them to
get any signal f(x) you
want!
• How many degrees of
freedom?
• What does each control?
• Which one encodes the
coarse vs. fine structure of
the signal?


x
Asin(
Fourier Transform
• We want to understand the frequency of our signal. So, let’s
reparametrize the signal by  instead of x:


x
Asin(
f(x) F()
Fourier
Transform
F() f(x)
Inverse Fourier
Transform
• For every  from 0 to inf, F() holds the amplitude A and phase
of the corresponding sine
– How can F hold both? Complex number trick!
)
(
)
(
)
( 

 iI
R
F 

2
2
)
(
)
( 
 I
R
A 


)
(
)
(
tan 1



R
I


Time and Frequency
• example : g(t) = sin(2pi f t) + (1/3)sin(2pi (3f) t)
Time and Frequency
= +
• example : g(t) = sin(2pi f t) + (1/3)sin(2pi (3f) t)
Frequency Spectra
• example : g(t) = sin(2pi f t) + (1/3)sin(2pi (3f) t)
= +
Frequency Spectra
• Usually, frequency is more interesting than the phase
= +
=
Frequency Spectra
= +
=
Frequency Spectra
= +
=
Frequency Spectra
= +
=
Frequency Spectra
= +
=
Frequency Spectra
=
1
1
sin(2 )
k
A kt
k




Frequency Spectra
Frequency Spectra
FT: Just a change of basis
.
.
.
* =
M * f(x) = F()
IFT: Just a change of basis
.
.
.
* =
M-1
* F() = f(x)
Fourier Transform – more formally
Arbitrary function Single Analytic Expression
Spatial Domain (x) Frequency Domain (u)
Represent the signal as an infinite weighted sum
of an infinite number of sinusoids
   





 dx
e
x
f
u
F ux
i 
2
(Frequency Spectrum F(u))
1
sin
cos 


 i
k
i
k
eik
Note:
Inverse Fourier Transform (IFT)
   




 dx
e
u
F
x
f ux
i 
2
• Also, defined as:
   





 dx
e
x
f
u
F iux
1
sin
cos 


 i
k
i
k
eik
Note:
• Inverse Fourier Transform (IFT)
   




 dx
e
u
F
x
f iux

2
1
Fourier Transform
Fourier Transform Pairs (I)
angular frequency ( )
iux
e
Note that these are derived using
angular frequency ( )
iux
e
Note that these are derived using
Fourier Transform Pairs (I)
Fourier Transform and Convolution
h
f
g 

   





 dx
e
x
g
u
G ux
i 
2
   
 








 dx
d
e
x
h
f ux
i


 
2
 
     
 
 










 dx
e
x
h
d
e
f x
u
i
u
i 





 2
2
 
   
 
 








 '
' '
2
2
dx
e
x
h
d
e
f ux
i
u
i 




Let
Then
   
u
H
u
F

Convolution in spatial domain
Multiplication in frequency domain

Fourier Transform and Convolution
h
f
g 
 FH
G 
fh
g  H
F
G 

Spatial Domain (x) Frequency Domain (u)
So, we can find g(x) by Fourier transform
g  f  h
G  F  H
FT FT
IFT
Properties of Fourier Transform
Spatial Domain (x) Frequency Domain (u)
Linearity    
x
g
c
x
f
c 2
1     
u
G
c
u
F
c 2
1 
Scaling  
ax
f 





a
u
F
a
1
Shifting  
0
x
x
f   
u
F
e ux
i 0
2

Symmetry  
x
F  
u
f 
Conjugation  
x
f 
 
u
F 

Convolution    
x
g
x
f     
u
G
u
F
Differentiation
 
n
n
dx
x
f
d
   
u
F
u
i
n

2
frequency ( )
ux
i
e 
2

Note that these are derived using
Properties of Fourier Transform
Example use: Smoothing/Blurring
• We want a smoothed function of f(x)
     
x
h
x
f
x
g 

H(u) attenuates high frequencies in F(u) (Low-pass Filter)!
• Then
    






 2
2
2
2
1
exp 
u
u
H
     
u
H
u
F
u
G 

2
1
u
 
u
H
  






 2
2
2
1
exp
2
1



x
x
h
• Let us use a Gaussian kernel

 
x
h
x
Does not look anything like what we have seen
Magnitude of the FT
Image Processing in the Fourier Domain
Image Processing in the Fourier Domain
Does not look anything like what we have seen
Magnitude of the FT
Convolution is Multiplication in Fourier Domain
*
f(x,y)
h(x,y)
g(x,y)
|F(sx,sy)|
|H(sx,sy)|
|G(sx,sy)|
Low-pass Filtering
Let the low frequencies pass and eliminating the high frequencies.
Generates image with overall
shading, but not much detail
High-pass Filtering
Lets through the high frequencies (the detail), but eliminates the low
frequencies (the overall shape). It acts like an edge enhancer.
Boosting High Frequencies
Most information at low frequencies!
Fun with Fourier Spectra
Next Class
• Image resampling and image pyramids
• Horn, Chapter 6

More Related Content

PPT
lec-4.ppt
PPT
lec-4.ppt
PPT
lec-4.ppt
PPTX
Fourier Transform
PPTX
Signals and Systems-Fourier Series and Transform
PDF
Fourier slide
PPT
FourierTransform detailed power point presentation
PPTX
signals and systems Unit 2 basics fourier transformm.pptx
lec-4.ppt
lec-4.ppt
lec-4.ppt
Fourier Transform
Signals and Systems-Fourier Series and Transform
Fourier slide
FourierTransform detailed power point presentation
signals and systems Unit 2 basics fourier transformm.pptx

Similar to lec-4.ppt COMPUTER VISIONS FOR ENGINEERING (20)

PPTX
Fourier and Laplace Transform FOR SIGNAL AND SYSTEM
PDF
Fourier Transform in Signal and System of Telecom
PDF
Lecture 9
PDF
Analog Communication Chap 3-pages-2-41.pdf
PPT
Optics Fourier Transform Ii
PDF
Transformada de Fourier y analisis espectral
PPTX
Presentation on fourier transformation
PPT
Fourier transforms Mulesh Anju Pramanik___
PPTX
PPT
8169399.ppt
PDF
IVR - Chapter 3 - Basics of filtering II: Spectral filters
PDF
DIGITAL IMAGE PROCESSING - Day 4 Image Transform
PPTX
SP_BEE2143_C1.pptx
PPTX
Fourier transform of common signals.pptx
PDF
5fourierseries
PPTX
SP_SNS_C2.pptx
PPTX
Wavelet Transform and DSP Applications
PPTX
EC8352- Signals and Systems - Unit 2 - Fourier transform
PDF
fouriertransform.pdf
PPTX
Fourier Series Fourier Series Fourier Series Fourier Series
Fourier and Laplace Transform FOR SIGNAL AND SYSTEM
Fourier Transform in Signal and System of Telecom
Lecture 9
Analog Communication Chap 3-pages-2-41.pdf
Optics Fourier Transform Ii
Transformada de Fourier y analisis espectral
Presentation on fourier transformation
Fourier transforms Mulesh Anju Pramanik___
8169399.ppt
IVR - Chapter 3 - Basics of filtering II: Spectral filters
DIGITAL IMAGE PROCESSING - Day 4 Image Transform
SP_BEE2143_C1.pptx
Fourier transform of common signals.pptx
5fourierseries
SP_SNS_C2.pptx
Wavelet Transform and DSP Applications
EC8352- Signals and Systems - Unit 2 - Fourier transform
fouriertransform.pdf
Fourier Series Fourier Series Fourier Series Fourier Series
Ad

More from Rethabile37 (16)

PPTX
Introduction to switchgear distributions.pptx
PPT
fnCh4.ppt ENGINEERING MATHEMATICS
PPT
fft.ppt MATHEMATICS FOR ENGINEERING
PDF
SYNCHRONOUS MACHINES EXAMPLES tutorial.pdf
PPTX
Bistables-multivibrators .pptx
PPTX
Counters.pptx,,,,,......................
PPT
L12_PROGRAMMABLE+LOGIC+DEVICES+(PLD).ppt
PDF
superposition principle notes .pdf
PPTX
PERMANENT SPLIT CAPACITOR SINGLE PHASE INDUCTION MOTOR.pptx
PDF
Lesson # 9 - Signal conditioning and conversion.pdf
PDF
Lesson # 5 - Light measurement transducers.pdf
PDF
Diode rectifiers.pdf POWER ELECTRONIC NOTES
PDF
Lesson[2] .pdf temperature transduders
PDF
Lesson[1] .pdf input transduder notes
PDF
Lesson[1].pdf process and instrumentation notes
PDF
electronic communication system unit one
Introduction to switchgear distributions.pptx
fnCh4.ppt ENGINEERING MATHEMATICS
fft.ppt MATHEMATICS FOR ENGINEERING
SYNCHRONOUS MACHINES EXAMPLES tutorial.pdf
Bistables-multivibrators .pptx
Counters.pptx,,,,,......................
L12_PROGRAMMABLE+LOGIC+DEVICES+(PLD).ppt
superposition principle notes .pdf
PERMANENT SPLIT CAPACITOR SINGLE PHASE INDUCTION MOTOR.pptx
Lesson # 9 - Signal conditioning and conversion.pdf
Lesson # 5 - Light measurement transducers.pdf
Diode rectifiers.pdf POWER ELECTRONIC NOTES
Lesson[2] .pdf temperature transduders
Lesson[1] .pdf input transduder notes
Lesson[1].pdf process and instrumentation notes
electronic communication system unit one
Ad

Recently uploaded (20)

PPTX
Sustainable Sites - Green Building Construction
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPT
Project quality management in manufacturing
PPTX
web development for engineering and engineering
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Sustainable Sites - Green Building Construction
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
CYBER-CRIMES AND SECURITY A guide to understanding
Model Code of Practice - Construction Work - 21102022 .pdf
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Automation-in-Manufacturing-Chapter-Introduction.pdf
Foundation to blockchain - A guide to Blockchain Tech
Operating System & Kernel Study Guide-1 - converted.pdf
Project quality management in manufacturing
web development for engineering and engineering
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
UNIT 4 Total Quality Management .pptx
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx

lec-4.ppt COMPUTER VISIONS FOR ENGINEERING

  • 1. Computer Vision Spring 2012 15-385,-685 Instructor: S. Narasimhan Wean Hall 5409 T-R 10:30am – 11:50am
  • 2. Frequency domain analysis and Fourier Transform Lecture #4
  • 3. How to Represent Signals? • Option 1: Taylor series represents any function using polynomials. • Polynomials are not the best - unstable and not very physically meaningful. • Easier to talk about “signals” in terms of its “frequencies” (how fast/often signals change, etc).
  • 4. Jean Baptiste Joseph Fourier (1768-1830) • Had crazy idea (1807): • Any periodic function can be rewritten as a weighted sum of Sines and Cosines of different frequencies. • Don’t believe it? – Neither did Lagrange, Laplace, Poisson and other big wigs – Not translated into English until 1878! • But it’s true! – called Fourier Series – Possibly the greatest tool used in Engineering
  • 5. A Sum of Sinusoids • Our building block: • Add enough of them to get any signal f(x) you want! • How many degrees of freedom? • What does each control? • Which one encodes the coarse vs. fine structure of the signal?   x Asin(
  • 6. Fourier Transform • We want to understand the frequency of our signal. So, let’s reparametrize the signal by  instead of x:   x Asin( f(x) F() Fourier Transform F() f(x) Inverse Fourier Transform • For every  from 0 to inf, F() holds the amplitude A and phase of the corresponding sine – How can F hold both? Complex number trick! ) ( ) ( ) (    iI R F   2 2 ) ( ) (   I R A    ) ( ) ( tan 1    R I  
  • 7. Time and Frequency • example : g(t) = sin(2pi f t) + (1/3)sin(2pi (3f) t)
  • 8. Time and Frequency = + • example : g(t) = sin(2pi f t) + (1/3)sin(2pi (3f) t)
  • 9. Frequency Spectra • example : g(t) = sin(2pi f t) + (1/3)sin(2pi (3f) t) = +
  • 10. Frequency Spectra • Usually, frequency is more interesting than the phase
  • 18. FT: Just a change of basis . . . * = M * f(x) = F()
  • 19. IFT: Just a change of basis . . . * = M-1 * F() = f(x)
  • 20. Fourier Transform – more formally Arbitrary function Single Analytic Expression Spatial Domain (x) Frequency Domain (u) Represent the signal as an infinite weighted sum of an infinite number of sinusoids           dx e x f u F ux i  2 (Frequency Spectrum F(u)) 1 sin cos     i k i k eik Note: Inverse Fourier Transform (IFT)          dx e u F x f ux i  2
  • 21. • Also, defined as:           dx e x f u F iux 1 sin cos     i k i k eik Note: • Inverse Fourier Transform (IFT)          dx e u F x f iux  2 1 Fourier Transform
  • 22. Fourier Transform Pairs (I) angular frequency ( ) iux e Note that these are derived using
  • 23. angular frequency ( ) iux e Note that these are derived using Fourier Transform Pairs (I)
  • 24. Fourier Transform and Convolution h f g             dx e x g u G ux i  2                dx d e x h f ux i     2                        dx e x h d e f x u i u i        2 2                    ' ' ' 2 2 dx e x h d e f ux i u i      Let Then     u H u F  Convolution in spatial domain Multiplication in frequency domain 
  • 25. Fourier Transform and Convolution h f g   FH G  fh g  H F G   Spatial Domain (x) Frequency Domain (u) So, we can find g(x) by Fourier transform g  f  h G  F  H FT FT IFT
  • 26. Properties of Fourier Transform Spatial Domain (x) Frequency Domain (u) Linearity     x g c x f c 2 1      u G c u F c 2 1  Scaling   ax f       a u F a 1 Shifting   0 x x f    u F e ux i 0 2  Symmetry   x F   u f  Conjugation   x f    u F   Convolution     x g x f      u G u F Differentiation   n n dx x f d     u F u i n  2 frequency ( ) ux i e  2  Note that these are derived using
  • 28. Example use: Smoothing/Blurring • We want a smoothed function of f(x)       x h x f x g   H(u) attenuates high frequencies in F(u) (Low-pass Filter)! • Then             2 2 2 2 1 exp  u u H       u H u F u G   2 1 u   u H           2 2 2 1 exp 2 1    x x h • Let us use a Gaussian kernel    x h x
  • 29. Does not look anything like what we have seen Magnitude of the FT Image Processing in the Fourier Domain
  • 30. Image Processing in the Fourier Domain Does not look anything like what we have seen Magnitude of the FT
  • 31. Convolution is Multiplication in Fourier Domain * f(x,y) h(x,y) g(x,y) |F(sx,sy)| |H(sx,sy)| |G(sx,sy)|
  • 32. Low-pass Filtering Let the low frequencies pass and eliminating the high frequencies. Generates image with overall shading, but not much detail
  • 33. High-pass Filtering Lets through the high frequencies (the detail), but eliminates the low frequencies (the overall shape). It acts like an edge enhancer.
  • 35. Most information at low frequencies!
  • 36. Fun with Fourier Spectra
  • 37. Next Class • Image resampling and image pyramids • Horn, Chapter 6