Image Processing Fourier Transform 1D Efficient Data Representation Discrete Fourier Transform - 1D Continuous Fourier Transform - 1D Examples.

Slides:



Advertisements
Similar presentations
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean Hall 5409 T-R 10:30am – 11:50am.
Advertisements

Computer Vision Lecture 7: The Fourier Transform
Review of 1-D Fourier Theory:
Time Series II.
Engineering Mathematics Class #15 Fourier Series, Integrals, and Transforms (Part 3) Sheng-Fang Huang.
Fourier Transform (Chapter 4)
Fourier Transform – Chapter 13. Image space Cameras (regardless of wave lengths) create images in the spatial domain Pixels represent features (intensity,
Basis beeldverwerking (8D040) dr. Andrea Fuster Prof.dr. Bart ter Haar Romeny dr. Anna Vilanova Prof.dr.ir. Marcel Breeuwer The Fourier Transform II.
Chapter Four Image Enhancement in the Frequency Domain.
Chap 4 Image Enhancement in the Frequency Domain.
The Fourier Transform Jean Baptiste Joseph Fourier.
Reminder Fourier Basis: t  [0,1] nZnZ Fourier Series: Fourier Coefficient:
Methods for Digital Image Processing
The Fourier Transform Jean Baptiste Joseph Fourier.
The Fourier Transform Jean Baptiste Joseph Fourier.
General Functions A non-periodic function can be represented as a sum of sin’s and cos’s of (possibly) all frequencies: F(  ) is the spectrum of the function.
Image Enhancement in the Frequency Domain Part I Image Enhancement in the Frequency Domain Part I Dr. Samir H. Abdul-Jauwad Electrical Engineering Department.
CSCE 641 Computer Graphics: Fourier Transform Jinxiang Chai.
Digital Image Processing Chapter 4: Image Enhancement in the Frequency Domain.
CPSC 641 Computer Graphics: Fourier Transform Jinxiang Chai.
Computational Photography: Fourier Transform Jinxiang Chai.
Transforms: Basis to Basis Normal Basis Hadamard Basis Basis functions Method to find coefficients (“Transform”) Inverse Transform.
The Fourier Transform Jean Baptiste Joseph Fourier.
Fourier Transform 2D Discrete Fourier Transform - 2D
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 4 Image Enhancement in the Frequency Domain Chapter.
Fourier Series Or How I Spent My Summer Vacation (the 2 weeks after the AP Exam) Kevin Bartkovich Phillips Exeter Academy 1.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm.
Motivation Music as a combination of sounds at different frequencies
1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier.
Image Processing © 2002 R. C. Gonzalez & R. E. Woods Lecture 4 Image Enhancement in the Frequency Domain Lecture 4 Image Enhancement.
Image Enhancement in the Frequency Domain Spring 2006, Jen-Chang Liu.
1 Chapter 5 Image Transforms. 2 Image Processing for Pattern Recognition Feature Extraction Acquisition Preprocessing Classification Post Processing Scaling.
Chapter 7: The Fourier Transform 7.1 Introduction
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos VC 14/15 – TP6 Frequency Space Miguel Tavares Coimbra.
Digital Image Processing Chapter 4 Image Enhancement in the Frequency Domain Part I.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Background Any function that periodically repeats itself.
Lecture 7: Sampling Review of 2D Fourier Theory We view f(x,y) as a linear combination of complex exponentials that represent plane waves. F(u,v) describes.
October 29, 2013Computer Vision Lecture 13: Fourier Transform II 1 The Fourier Transform In the previous lecture, we discussed the Hough transform. There.
Spatial Frequencies Spatial Frequencies. Why are Spatial Frequencies important? Efficient data representation Provides a means for modeling and removing.
Fourier Analysis of Discrete Time Signals
Image as a linear combination of basis images
Math Review Towards Fourier Transform
Lecture 7 Transformations in frequency domain 1.Basic steps in frequency domain transformation 2.Fourier transformation theory in 1-D.
Fourier Transform.
2D Fourier Transform.
Frequency domain analysis and Fourier Transform
Ch # 11 Fourier Series, Integrals, and Transform 1.
The Frequency Domain Digital Image Processing – Chapter 8.
Fourier transform.
The Fourier Transform.
Fourier Transform (Chapter 4) CS474/674 – Prof. Bebis.
Digital Image Processing Lecture 8: Fourier Transform Prof. Charlene Tsai.
Jean Baptiste Joseph Fourier
The Fourier Transform Jean Baptiste Joseph Fourier.
Image Enhancement and Restoration
Lecture 1.26 Spectral analysis of periodic and non-periodic signals.
The Fourier Transform Jean Baptiste Joseph Fourier.
The Fourier Transform Jean Baptiste Joseph Fourier.
Image Enhancement in the
Miguel Tavares Coimbra
CSCE 643 Computer Vision: Thinking in Frequency
Instructor: S. Narasimhan
The Fourier Transform Jean Baptiste Joseph Fourier.
The Fourier Transform Jean Baptiste Joseph Fourier.
Fourier Transforms.
Intensity Transformation
Lecture 4 Image Enhancement in Frequency Domain
Discrete Fourier Transform
Presentation transcript:

Image Processing Fourier Transform 1D Efficient Data Representation Discrete Fourier Transform - 1D Continuous Fourier Transform - 1D Examples

2 The Fourier Transform Jean Baptiste Joseph Fourier

3 Efficient Data Representation Data can be represented in many ways. There is a great advantage using an appropriate representation. Examples: –Equalizers in Stereo systems. –Noisy points along a line –Color space red/green/blue v.s. Hue/Brightness

4 Problem in Frequency Space Original Problem Solution in Frequency Space Solution of Original Problem Relatively easy solution Difficult solution Fourier Transform Inverse Fourier Transform Why do we need representation in the frequency domain?

5 How can we enhance such an image?

6 Solution: Image Representation = =

7 Transforms 1.Basis Functions. 2.Method for finding the image given the transform coefficients. 3.Method for finding the transform coefficients given the image. U Coordinates V Coordinates X Coordinate Y Coordinate Grayscale Image Transformed Image

8 Representation in different bases It is possible to go back and forth between representations: v1v1 v2v2 a u1u1 u2u2

9 The Inner Product Discrete vectors (real numbers): Discrete vectors (complex numbers): The vector a H denotes the conjugate transpose of a. Continuous functions:

10 The Fourier basis functions Basis Functions are sines and cosines sin(x) cos(2x) sin(4x) The transform coefficients determine the amplitude and phase: a sin(2x)2a sin(2x) -a sin(2x+  )

11 3 sin(x) + 1 sin(3x) sin(5x) sin(7x) = A B C D A+B A+B+C A+B+C+D Every function equals a sum of sines and cosines

12 Sum of cosines only symmetric functions Sum of sines only antisymmetric functions {{ 

13 Using Complex Numbers: cos(kx), sin(kx) C k cos(kx) + S k sin(kx) = R k sin(kx +  k ) f(x) = C 0 + C 1 cos(x) + S 1 sin(x) C k cos(kx) + S k sin(kx) +... Fourier Coefficients e ikx Terms are considered in pairs: C k cos(kx) + S k sin(kx) R e i  e ikx Amplitude+phase

14 The inverse Continuous Fourier Transform composes a signal f(x) given F(  ): The 1D Continues Fourier Transform The Continuous Fourier Transform finds the F(  ) given the (cont.) signal f(x): B  (x)=e i2  x is a complex wave function for each (continues) given  F(  ) and f(x) are continues.

15 Continuous vs sampled Signals Sampling : Move from f(x) (x  R) to f(x j ) (j  Z) by sampling at equal intervals. f(x 0 ), f(x 0 +  x), f(x 0 +2  x),...., f(x 0 +[n-1]  x), Given N samples at equal intervals, we redefine f as: f(j) = f(x 0 +j  x) j = 0, 1, 2,..., N f(x) f(x 0 ) f(x 0 +  x) f(x 0 +2  x) f(x 0 +3  x) f(j) = f(x 0 + j  x) f(0) f(3) f(2) f(1)

16 The discrete basis functions are For frequency k the Fourier coefficient is:

17 k = 0, 1, 2,..., N-1 x = 0, 1, 2,..., N-1 The Inverse Discrete Fourier Transform (IDFT) is defined as: Matlab: F=fft(f); Matlab: F=ifft(f); The Discrete Fourier Transform (DFT) Remark: Normalization constant might be different!

18 Discrete Fourier Transform - Example F(0) =  f(x) e =  f(x) 1 3 x=0 -2  i0x 4 = (f(0) + f(1) + f(2) + f(3)) = ( ) = 13 3 x=0 F(1) =  f(x) e = [2e 0 +3e -i  /2 +4e  i +4e -i3  /2 ] = [-2+i] 3 x=0 -2  ix 4 F(3) =  f(x) e = [2e 0 +3e -i3  /2 +4e  i + 4e -i9  /2 ] = [-2-i] 3 x=0 -6  ix 4 F(2) =  f(x) e = [2e 0 +3e -i  +4e  i + 4e -3  i ] = [-1-0i]= -1 3 x=0 -4  ix 4 DFT of [ ] is [ 13 (-2+i) -1 (-2-i) ] f(x) = [ ]

19 F(k) is the Fourier transform of f(x): f(x) is the inverse Fourier transform of F(k): f(x) and F(k) are a Fourier pair. f(x) is a representation of the signal in the Spatial Domain and F(k) is a representation in the Frequency Domain. The Fourier Transform - Summary

20 The Fourier transform F(k) is a function over the complex numbers: –R k tells us how much of frequency k is needed. –  k tells us the shift of the Sine wave with frequency k. Alternatively: –a k tells us how much of cos with frequency k is needed. –b k tells us how much of sin with frequency k is needed.

21 x f(x) k RkRk k kk The signal f(x) k Real k Imag Amplitude (spectrum) and Phase Real and Imaginary The Frequency Domain

22 R k - is the amplitude of F(k).  k - is the phase of F(k). |R k | 2 =F * (k) F(k) - is the power spectrum of F(k). If a signal f(x) has a lot of fine details |R k | 2 will be high for high k. If the signal f(x) is "smooth" |R k | 2 will be low for high k. 3 sin(x) + 1 sin(3x) sin(5x) sin(7x) =

DEMO 23

24 Examples: Let Fourier  x f(x) R    Real  Imag The Delta Function: 0

25 Let Fourier  x f(x) R    Real  Imag The Constant Function: 0 0 0

26 Let Fourier  x f(x) R    Real  Imag A Basis Function: 0 00 00

27 Let x  R   f(x) Fourier 00 -0-0  Real  Imag 00 -0-0 The Cosine wave:

28 Let x  RR   f(x) Fourier 00 -0-0  /2  Real  Imag 00 -0-0 The Sine wave: -  /2

29 Let x f(x) Fourier RR  The Window Function (rect):

30 Proof: f(x) = rect 1/2 (x) = { 1 |x|  1/2 0 otherwise 1 -1/21/2 sinc(  )  F(  )

31 Let x f(x) Fourier RR  The Gaussian:

32 Let x f(x) Fourier RR  The Comb Function: c k (x) C 1/k (  )

33 Properties of The Fourier Transform Linearity: Distributive (additivity): DC (average): Symmetric: If f(x) is real then,

34 x f(x)  |F(  )| x g(x)  |G(  )| x f+g  |F(  )+G(  )| Distributive:

35 Transformations Translation: The Fourier Spectrum remains unchanged under translation: Scaling:

Example - Translation 1D Image Translated real(F(u))imag(F(u))|F(u)| Differences:

37 x f(x)  |F(  )| x f(x)  |F(  )| Change of Scale- 1D: x f(x)  |F(  )|

38 x f(x)  F(  ) x f(2x)  0.5 F(  /2) Change of Scale x f(x/2)  2 F(2  )