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.

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
Basic Properties of signal, Fourier Expansion and it’s Applications in Digital Image processing. Md. Al Mehedi Hasan Assistant Professor Dept. of Computer.
Digital Image Processing
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,
Chap 4 Image Enhancement in the Frequency Domain.
Linear Filtering – Part II Selim Aksoy Department of Computer Engineering Bilkent University
Fourier Transform in Image Processing
Chapter 4 Image Enhancement in the Frequency Domain.
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.
Fourier Analysis Without Tears : Computational Photography Alexei Efros, CMU, Fall 2005 Somewhere in Cinque Terre, May 2005.
The Frequency Domain : Computational Photography Alexei Efros, CMU, Fall 2011 Somewhere in Cinque Terre, May 2005 Many slides borrowed from Steve.
CPSC 641 Computer Graphics: Fourier Transform Jinxiang Chai.
The Frequency Domain : Computational Photography Alexei Efros, CMU, Fall 2008 Somewhere in Cinque Terre, May 2005 Many slides borrowed from Steve.
Computational Photography: Fourier Transform Jinxiang Chai.
Fourier Analysis : Rendering and Image Processing Alexei Efros.
Basic Image Processing January 26, 30 and February 1.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 4 Image Enhancement in the Frequency Domain Chapter.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean Hall 5409 T-R 10:30am – 11:50am.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm.
Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos VC 14/15 – TP3 Digital Images Miguel Tavares Coimbra.
G52IIP, School of Computer Science, University of Nottingham 1 Image Transforms Fourier Transform Basic idea.
University of Ioannina - Department of Computer Science Filtering in the Frequency Domain (Fundamentals) Digital Image Processing Christophoros Nikou
Image Processing Fourier Transform 1D Efficient Data Representation Discrete Fourier Transform - 1D Continuous Fourier Transform - 1D Examples.
The Frequency Domain Somewhere in Cinque Terre, May 2005 Many slides borrowed from Steve Seitz CS194: Image Manipulation & Computational Photography Alexei.
Recap of Friday linear Filtering convolution differential filters
CSC589 Introduction to Computer Vision Lecture 7 Thinking in Frequency Bei Xiao.
Chapter 4: Image Enhancement in the Frequency Domain Chapter 4: Image Enhancement in the Frequency Domain.
Image Processing © 2002 R. C. Gonzalez & R. E. Woods Lecture 4 Image Enhancement in the Frequency Domain Lecture 4 Image Enhancement.
1 Chapter 5 Image Transforms. 2 Image Processing for Pattern Recognition Feature Extraction Acquisition Preprocessing Classification Post Processing Scaling.
Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos VC 14/15 – TP8 Segmentation 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.
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.
Miguel Tavares Coimbra
The Frequency Domain : Computational Photography Alexei Efros, CMU, Fall 2010 Somewhere in Cinque Terre, May 2005 Many slides borrowed from Steve.
Recap of Monday linear Filtering convolution differential filters filter types boundary conditions.
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.
Image as a linear combination of basis images
Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos VC 15/16 – TP7 Spatial Filters Miguel Tavares Coimbra.
Fourier Transform.
2D Fourier Transform.
Frequency domain analysis and Fourier Transform
The Frequency Domain Digital Image Processing – Chapter 8.
The Fourier Transform.
Computer Vision – 2D Signal & System Hanyang University Jong-Il Park.
Fourier Transform (Chapter 4) CS474/674 – Prof. Bebis.
Digital Image Processing Lecture 8: Fourier Transform Prof. Charlene Tsai.
Miguel Tavares Coimbra
Jean Baptiste Joseph Fourier
The Frequency Domain, without tears
Lecture 1.26 Spectral analysis of periodic and non-periodic signals.
Image Enhancement in the
Miguel Tavares Coimbra
Frequency domain analysis and Fourier Transform
The Frequency Domain : Computational Photography
CSCE 643 Computer Vision: Thinking in Frequency
Instructor: S. Narasimhan
Basic Image Processing
Fourier Analysis Without Tears
Intensity Transformation
Miguel Tavares Coimbra
Lecture 4 Image Enhancement in Frequency Domain
Presentation transcript:

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

VC 14/15 - TP6 - Frequency Space Outline Fourier Transform Frequency Space Spatial Convolution Acknowledgements: Most of this course is based on the excellent courses offered by Prof. Shree Nayar at Columbia University, USA and by Prof. Srinivasa Narasimhan at CMU, USA. Please acknowledge the original source when reusing these slides for academic purposes.

VC 14/15 - TP6 - Frequency Space Topic: Fourier Transform Fourier Transform Frequency Space Spatial Convolution

VC 14/15 - TP6 - Frequency Space 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).

VC 14/15 - TP6 - Frequency Space Jean Baptiste Joseph Fourier ( ) Had a 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

VC 14/15 - TP6 - Frequency Space 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?

VC 14/15 - TP6 - Frequency Space We want to understand the frequency  of our signal. So, let’s reparametrize the signal by  instead of x: 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! Fourier Transform f(x) F(  ) Fourier Transform

VC 14/15 - TP6 - Frequency Space Time and Frequency example : g(t) = sin(2pf t) + (1/3)sin(2p(3f) t)

VC 14/15 - TP6 - Frequency Space Time and Frequency example : g(t) = sin(2pf t) + (1/3)sin(2p(3f) t) = +

VC 14/15 - TP6 - Frequency Space Frequency Spectra example : g(t) = sin(2pf t) + (1/3)sin(2p(3f) t) = +

VC 14/15 - TP6 - Frequency Space Frequency Spectra Usually, frequency is more interesting than the phase

VC 14/15 - TP6 - Frequency Space = + = Frequency Spectra

VC 14/15 - TP6 - Frequency Space = + = Frequency Spectra

VC 14/15 - TP6 - Frequency Space = + = Frequency Spectra

VC 14/15 - TP6 - Frequency Space = + = Frequency Spectra

VC 14/15 - TP6 - Frequency Space = + = Frequency Spectra

VC 14/15 - TP6 - Frequency Space = Frequency Spectra

VC 14/15 - TP6 - Frequency Space Fourier Transform – more formally Arbitrary functionSingle Analytic Expression Spatial Domain (x)Frequency Domain (u) Represent the signal as an infinite weighted sum of an infinite number of sinusoids (Frequency Spectrum F(u)) Note: Inverse Fourier Transform (IFT)

VC 14/15 - TP6 - Frequency Space Fourier Transform Also, defined as: Note: Inverse Fourier Transform (IFT)

VC 14/15 - TP6 - Frequency Space Properties of Fourier Transform Spatial Domain Frequency Domain Linearity Scaling Shifting Symmetry Conjugation Convolution Differentiation

VC 14/15 - TP6 - Frequency Space Topic: Frequency Space Fourier Transform Frequency Space Spatial Convolution

VC 14/15 - TP6 - Frequency Space How does this apply to images? We have defined the Fourier Transform as But images are: –Discrete. –Two-dimensional. What a computer sees

VC 14/15 - TP6 - Frequency Space 2D Discrete FT In a 2-variable case, the discrete FT pair is: For u=0,1,2,…,M-1 and v=0,1,2,…,N-1 For x=0,1,2,…,M-1 and y=0,1,2,…,N-1 AND: New matrix with the same size!

VC 14/15 - TP6 - Frequency Space Frequency Space Image Space –f(x,y) –Intuitive Frequency Space –F(u,v) –What does this mean?

VC 14/15 - TP6 - Frequency Space Power distribution An image (500x500 pixels) and its Fourier spectrum. The super-imposed circles have radii values of 5, 15, 30, 80, and 230, which respectively enclose 92.0, 94.6, 96.4, 98.0, and 99.5% of the image power.

VC 14/15 - TP6 - Frequency Space Power distribution Most power is in low frequencies. Means we are using more of this: And less of this: To represent our signal. Why?

VC 14/15 - TP6 - Frequency Space What does this mean??

VC 14/15 - TP6 - Frequency Space Horizontal and Vertical Frequency Frequencies: –Horizontal frequencies correspond to horizontal gradients. –Vertical frequencies correspond to vertical gradients. What about diagonal lines?

VC 14/15 - TP6 - Frequency Space

If I discard high-frequencies, I get a blurred image... Why?

VC 14/15 - TP6 - Frequency Space Why bother with FT? Great for filtering. Great for compression. In some situations: Much faster than operating in the spatial domain. Convolutions are simple multiplications in Frequency space!...

VC 14/15 - TP6 - Frequency Space Topic: Spatial Convolution Fourier Transform Frequency Space Spatial Convolution

VC 14/15 - TP6 - Frequency Space Convolution kernel h

VC 14/15 - TP6 - Frequency Space Convolution - Example Eric Weinstein’s Math World

VC 14/15 - TP6 - Frequency Space Convolution - Example

VC 14/15 - TP6 - Frequency Space Convolution Kernel – Impulse Response What h will give us g = f ? Dirac Delta Function (Unit Impulse)

VC 14/15 - TP6 - Frequency Space Point Spread Function Ideally, the optical system should be a Dirac delta function. However, optical systems are never ideal. Point spread function of Human Eyes. Optical System sceneimage Optical System point sourcepoint spread function

VC 14/15 - TP6 - Frequency Space Point Spread Function normal visionmyopiahyperopia Images by Richmond Eye Associates

VC 14/15 - TP6 - Frequency Space Properties of Convolution Commutative Associative Cascade system

VC 14/15 - TP6 - Frequency Space Fourier Transform and Convolution LetThen Convolution in spatial domain Multiplication in frequency domain

VC 14/15 - TP6 - Frequency Space Fourier Transform and Convolution Spatial Domain (x)Frequency Domain (u) So, we can find g(x) by Fourier transform FT IFT

VC 14/15 - TP6 - Frequency Space Example use: Smoothing/Blurring We want a smoothed function of f(x) Then Let us use a Gaussian kernel

VC 14/15 - TP6 - Frequency Space Resources Russ – Chapter 6 Gonzalez & Woods – Chapter 4