The Fourier Transform Jean Baptiste Joseph Fourier.

Slides:



Advertisements
Similar presentations
Computer Vision Lecture 7: The Fourier Transform
Advertisements

Fourier Transform (Chapter 4)
Chapter Four Image Enhancement in the Frequency Domain.
Chap 4 Image Enhancement in the Frequency Domain.
Digital Image Processing
The Fourier Transform Jean Baptiste Joseph Fourier.
Reminder Fourier Basis: t  [0,1] nZnZ Fourier Series: Fourier Coefficient:
Chap 4-2. Frequency domain processing Jen-Chang Liu, 2006.
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.
Digital Image Processing Chapter 4: Image Enhancement in the Frequency Domain.
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.
Some Properties of the 2-D Fourier Transform Translation Distributivity and Scaling Rotation Periodicity and Conjugate Symmetry Separability Convolution.
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
2D Image Fourier Spectrum.
Image Processing Fourier Transform 1D Efficient Data Representation Discrete Fourier Transform - 1D Continuous Fourier Transform - 1D Examples.
CSC589 Introduction to Computer Vision Lecture 7 Thinking in Frequency Bei Xiao.
Digital Image Processing Chapter # 4 Image Enhancement in Frequency Domain Digital Image Processing Chapter # 4 Image Enhancement in Frequency Domain.
Chapter 4: Image Enhancement in the Frequency Domain Chapter 4: Image Enhancement in the Frequency Domain.
: Chapter 14: The Frequency Domain 1 Montri Karnjanadecha ac.th/~montri Image Processing.
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.
09/19/2002 (C) University of Wisconsin 2002, CS 559 Last Time Color Quantization Dithering.
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.
ENG4BF3 Medical Image Processing Image Enhancement in Frequency Domain.
October 29, 2013Computer Vision Lecture 13: Fourier Transform II 1 The Fourier Transform In the previous lecture, we discussed the Hough transform. There.
7- 1 Chapter 7: Fourier Analysis Fourier analysis = Series + Transform ◎ Fourier Series -- A periodic (T) function f(x) can be written as the sum of sines.
Practical Image Processing1 Chap7 Image Transformation  Image and Transformed image Spatial  Transformed domain Transformation.
Fourier Transform.
CS 376b Introduction to Computer Vision 03 / 17 / 2008 Instructor: Michael Eckmann.
Image hole-filling. Agenda Project 2: Will be up tomorrow Due in 2 weeks Fourier – finish up Hole-filling (texture synthesis) Image blending.
Computer Graphics & Image Processing Chapter # 4 Image Enhancement in Frequency Domain 2/26/20161.
2D Fourier Transform.
The Frequency Domain Digital Image Processing – Chapter 8.
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 4: Imaging Theory (2/6) – One-dimensional Fourier transforms
The Fourier Transform Jean Baptiste Joseph Fourier.
Frequency domain analysis and Fourier Transform
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.
Fourier Transform.
All about convolution.
ENG4BF3 Medical Image Processing
Frequency Domain Analysis
2D Fourier transform is separable
Discrete Fourier Transform
CSCE 643 Computer Vision: Thinking in Frequency
Image Processing, Leture #14
4. Image Enhancement in Frequency Domain
Phase and Amplitude in Fourier Transforms, Meaning of frequencies
Instructor: S. Narasimhan
The Fourier Transform Jean Baptiste Joseph Fourier.
The Fourier Transform Jean Baptiste Joseph Fourier.
Intensity Transformation
Chapter 15: Wavelets (i) Fourier spectrum provides all the frequencies
Lecture 4 Image Enhancement in Frequency Domain
The Frequency Domain Any wave shape can be approximated by a sum of periodic (such as sine and cosine) functions. a--amplitude of waveform f-- frequency.
Presentation transcript:

The Fourier Transform Jean Baptiste Joseph Fourier

… A sum of sines and cosines = 3 sin(x) A sin(x) A + 1 sin(3x) B A+B A+B+C Accept without proof that every function is a sum of sines/cosines As frequency increases – more details are added Low frequency – main details Hight frequency – fine details Coef decreases with the frequency + 0.4 sin(7x) D A+B+C+D …

Higher frequencies due to sharp image variations (e.g., edges, noise, etc.)

The Continuous Fourier Transform Basis functions:

Complex Numbers Imaginary Z=(a,b) b |Z|  Real a

The 1D Basis Functions x The wavelength is 1/u . The frequency is u .

The Continuous Fourier Transform 1D Continuous Fourier Transform: The Inverse Fourier Transform The Fourier Transform Basis functions: An orthonormal basis 

Some Fourier Transforms Function Fourier Transform

The Continuous Fourier Transform 1D Continuous Fourier Transform: The Inverse Fourier Transform The Fourier Transform 2D Continuous Fourier Transform: The Inverse Transform The Transform

The 2D Basis Functions V U The wavelength is . The direction is u/v .

Discrete Functions f(x) f(n) = f(x0 + nDx) The discrete function f: f(x0+2Dx) f(x0+3Dx) f(x0+Dx) f(x0) x0 x0+Dx x0+2Dx x0+3Dx 0 1 2 3 ... N-1 The discrete function f: { f(0), f(1), f(2), … , f(N-1) }

The Finite Discrete Fourier Transform 1D Finite Discrete Fourier Transform: (u = 0,..., N-1) (x = 0,..., N-1) 2D Finite Discrete Fourier Transform: (x = 0,..., N-1; y = 0,…,M-1) (u = 0,..., N-1; v = 0,…,M-1)

About the Discrete Transform f 𝑑 is a discrete sampling of f(x) at gaps Δx ⇕ F 𝑑 is a discrete sampling of F(u) at gaps Δu= 1 𝑁Δx Periodicity of the discrete transform (both f(x) and F(u)): F(u+N) = F(u) f(x+N) = f(x) F(u+N) = 1 𝑁 0 𝑁−1 f(x) 𝑒 − 2𝜋𝑖𝑥(𝑢+𝑁) 𝑁 f(x+N) = f(x) can be shown using the inverse transform. Computational complexity: O(N·logN) (with FFT – the Fast Fourier Transform) = 1 𝑁 0 𝑁−1 f(x) 𝑒 − 2𝜋𝑖𝑥𝑢 𝑁 𝑒 −2𝜋𝑖𝑥 = F(u) = 1

The Fourier Image Image f Fourier spectrum (magnitude) log(1 + |F(u,v)|) |F(u,v)|

Frequency Bands Image Fourier Spectrum Percentage of image power enclosed in circles (small to large) : 90%, 95%, 98%, 99%, 99.5%, 99.9%

Low pass Filtering 90% 95% 98% 99% 99.5% 99.9%

Noise Removal Noisy image Noise-cleaned image Fourier Spectrum (magnitude)

High Pass Filtering Original High Pass Filtered

High Frequency Emphasis + Original High Pass Filtered

High Frequency Emphasis Original High Frequency Emphasis

High Frequency Emphasis Original High Frequency Emphasis

High Frequency Emphasis Original High Frequency Emphasis

Fourier Properties Separability of the 2D transform: 2D Transform = successive applications of 1D transforms Linearity: f+g ↔ F+G af ↔ aF Image average: F(0,0) = avg( f(x,y) ) Shift  phase-change: g(x)=f(x+a) ↔ G(u)=F(u) 𝑒 2𝜋𝑖𝑢𝑎 G(u)=F(u) 𝑒 2𝜋𝑖𝑢𝑎/𝑁 * Same magnitude; only phase shift. * Can be used to recover shift (a,b) between two images f(x,y) & g(x,y): G(u,v)/F(u,v)= 𝑒 2𝜋𝑖( 𝑢𝑎 𝑁 + 𝑣𝑏 𝑀 ) (continuous) (discrete) G(u) = F(u) ↔ δ(x+a,y+b)

Fourier Properties Scaling/Shrinking: f(ax) ↔ 1 a F u a Derivative: g(x)= 𝑑 𝑑𝑥 f(x) ↔ G(u)= 2𝜋𝑖 u F(u) * G(0)=0. * Taking the derivative increases high frequencies (noise, edges) * Behaves like a high-pass filter (HPF). Rotation: rotation of f(x,y) by θ ↔ rotation of F(u,v) by θ (can be shown using polar coordinates) Principle of Uncertainty: No meaning to “a frequency at a point” ! every value f(x) contributes to all frequencies F(u) every frequency F(u) contributes to all values f(x)

Importance of Phase vs. Magnitude Curious fact: All natural images have approximately the same Fourier magnitude; but images look very different from one another… How come….?  phase seems to matter more than magnitude. Demonstration: Take two pictures  FFT  swap their phase transforms  FFT −1  what does the result look like…?

Slide: Freeman & Durand

Slide: Freeman & Durand

Reconstruction with zebra phase, cheetah magnitude Slide: Freeman & Durand

Reconstruction with cheetah phase, zebra magnitude Slide: Freeman & Durand

Slide: Freeman & Durand

Fast Fourier Transform - FFT u = 0, 1, 2, ..., N-1 O(N2) operations, if performed as is FFT: even x odd x Fourier Transform of of N/2 even points Fourier Transform of of N/2 odd points The Fourier transform of N inputs, can be performed as 2 Fourier Transforms of N/2 inputs each + one complex multiplication and addition for each value. Thus, if F(N) is the computation complexity of FFT: F(N)=F(N/2)+F(N/2)+O(N)  F(N)=N logN

FFT of NxN Image: O(N2 log(N)) operations F(0) F(1) F(2) F(3) F(4) F(5) F(6) F(7) F(0) F(2) F(4) F(6) F(1) F(3) F(5) F(7) F(0) F(4) F(2) F(6) F(1) F(5) F(3) F(7) F(0) F(1) F(2) F(3) F(4) F(5) F(6) F(7) 2-point transform 4-point transform FFT FFT : O(N log(N)) operations FFT of NxN Image: O(N2 log(N)) operations