Fourier Transform.

Slides:



Advertisements
Similar presentations
Fourier Transform and its Application in Image Processing
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.
Fourier Transform (Chapter 4)
Frequency Domain The frequency domain
Fourier Transform – Chapter 13. Image space Cameras (regardless of wave lengths) create images in the spatial domain Pixels represent features (intensity,
Chapter Four Image Enhancement in the Frequency Domain.
Chap 4 Image Enhancement in the Frequency Domain.
Digital Image Processing
Computer Graphics Recitation 6. 2 Motivation – Image compression What linear combination of 8x8 basis signals produces an 8x8 block in the image?
Reminder Fourier Basis: t  [0,1] nZnZ Fourier Series: Fourier Coefficient:
Chapter 4 Image Enhancement in the Frequency Domain.
Chap 4-2. Frequency domain processing Jen-Chang Liu, 2006.
The Fourier Transform Jean Baptiste Joseph Fourier.
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.
Image Fourier Transform Faisal Farooq Q: How many signal processing engineers does it take to change a light bulb? A: Three. One to Fourier transform the.
Some Properties of the 2-D Fourier Transform Translation Distributivity and Scaling Rotation Periodicity and Conjugate Symmetry Separability Convolution.
Chapter 4 Image Enhancement in the Frequency Domain.
Transforms: Basis to Basis Normal Basis Hadamard Basis Basis functions Method to find coefficients (“Transform”) Inverse Transform.
Fourier Transform 2D Discrete Fourier Transform - 2D
DREAM PLAN IDEA IMPLEMENTATION Introduction to Image Processing Dr. Kourosh Kiani
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 4 Image Enhancement in the Frequency Domain Chapter.
G52IIP, School of Computer Science, University of Nottingham 1 Image Transforms Fourier Transform Basic idea.
Topic 7 - Fourier Transforms DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
Introduction to Image Processing
Digital Image Processing Chapter # 4 Image Enhancement in Frequency Domain Digital Image Processing Chapter # 4 Image Enhancement in Frequency Domain.
: Chapter 14: The Frequency Domain 1 Montri Karnjanadecha ac.th/~montri Image Processing.
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
Part I: Image Transforms DIGITAL IMAGE PROCESSING.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Digital Image Processing Chapter 4 Image Enhancement in the Frequency Domain Part I.
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.
Digital Image Processing Chapter 4: Image Enhancement in the Frequency Domain 22 June 2005 Digital Image Processing Chapter 4: Image Enhancement in the.
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.
Dr. Scott Umbaugh, SIUE Discrete Transforms.
Practical Image Processing1 Chap7 Image Transformation  Image and Transformed image Spatial  Transformed domain Transformation.
CS 376b Introduction to Computer Vision 03 / 17 / 2008 Instructor: Michael Eckmann.
Dr. Abdul Basit Siddiqui FUIEMS. QuizTime 30 min. How the coefficents of Laplacian Filter are generated. Show your complete work. Also discuss different.
Computer Graphics & Image Processing Chapter # 4 Image Enhancement in Frequency Domain 2/26/20161.
G52IIP, School of Computer Science, University of Nottingham 1 Image Transforms Basic idea Input Image, I(x,y) (spatial domain) Mathematical Transformation.
2D Fourier Transform.
BYST Xform-1 DIP - WS2002: Fourier Transform Digital Image Processing Bundit Thipakorn, Ph.D. Computer Engineering Department Fourier Transform and Image.
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.
Digital Image Processing , 2008
Jean Baptiste Joseph Fourier
Image Deblurring and noise reduction in python
Image Enhancement in the
Dr. Nikos Desypris, Oct Lecture 3
Fourier Transform.
All about convolution.
Math Review CS474/674 – Prof. Bebis.
ENG4BF3 Medical Image Processing
2D Fourier transform is separable
Image Processing, Leture #14
4. Image Enhancement in Frequency Domain
Digital Image Procesing Unitary Transforms Discrete Fourier Trasform (DFT) in Image Processing DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL.
Fourier Transforms.
Digital Image Procesing Unitary Transforms Discrete Fourier Trasform (DFT) in Image Processing DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL.
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:

Fourier Transform

Mathematical Background: Complex Numbers A complex number x is of the form: α: real part, b: imaginary part Addition: Multiplication:

Mathematical Background: Complex Numbers (cont’d) Magnitude-Phase (i.e.,vector) representation Magnitude: Phase: φ Magnitude-Phase notation:

Mathematical Background: Complex Numbers (cont’d) Multiplication using magnitude-phase representation Complex conjugate Properties

Mathematical Background: Complex Numbers (cont’d) Euler’s formula Properties j

Mathematical Background: Sine and Cosine Functions Periodic functions General form of sine and cosine functions:

Mathematical Background: Sine and Cosine Functions Special case: A=1, b=0, α=1 π 3π/2 π/2 π π/2 3π/2

Mathematical Background: Sine and Cosine Functions (cont’d) Shifting or translating the sine function by a const b Note: cosine is a shifted sine function:

Mathematical Background: Sine and Cosine Functions (cont’d) Changing the amplitude A

Mathematical Background: Sine and Cosine Functions (cont’d) Changing the period T=2π/|α| consider A=1, b=0: y=cos(αt) α =4 period 2π/4=π/2 shorter period higher frequency (i.e., oscillates faster) Frequency is defined as f=1/T Alternative notation: cos(αt)=cos(2πt/T)=cos(2πft)

Basis Functions Given a vector space of functions, S, then if any f(t) ϵ S can be expressed as the set of functions φk(t) are called the expansion set of S. If the expansion is unique, the set φk(t) is a basis.

Image Transforms Many times, image processing tasks are best performed in a domain other than the spatial domain. Key steps: (1) Transform the image (2) Carry the task(s) in the transformed domain. (3) Apply inverse transform to return to the spatial domain.

Transformation Kernels Forward Transformation Inverse Transformation forward transformation kernel inverse transformation kernel

Kernel Properties A kernel is said to be separable if: A kernel is said to be symmetric if:

Notation Continuous Fourier Transform (FT) Discrete Fourier Transform (DFT) Fast Fourier Transform (FFT)

Fourier Series Theorem Any periodic function f(t) can be expressed as a weighted sum (infinite) of sine and cosine functions of varying frequency: is called the “fundamental frequency”    

Fourier Series (cont’d) α1 α2 α3

Continuous Fourier Transform (FT) Transforms a signal (i.e., function) from the spatial (x) domain to the frequency (u) domain. where

Why is FT Useful? Easier to remove undesirable frequencies. Faster perform certain operations in the frequency domain than in the spatial domain.

Example: Removing undesirable frequencies noisy signal To remove certain frequencies, set their corresponding F(u) coefficients to zero! remove high frequencies reconstructed signal

How do frequencies show up in an image? Low frequencies correspond to slowly varying information (e.g., continuous surface). High frequencies correspond to quickly varying information (e.g., edges) Original Image Low-passed

Example of noise reduction using FT Input image Spectrum Band-pass filter Output image

Frequency Filtering Steps 1. Take the FT of f(x): 2. Remove undesired frequencies: 3. Convert back to a signal: We’ll talk more about these steps later .....

Definitions F(u) is a complex function: Magnitude of FT (spectrum): Phase of FT: Magnitude-Phase representation: Power of f(x): P(u)=|F(u)|2=

Extending FT in 2D Forward FT Inverse FT

Example: 2D rectangle function FT of 2D rectangle function 2D sinc()

Discrete Fourier Transform (DFT) (cont’d) Forward DFT Inverse DFT 1/NΔx

Extending DFT to 2D Assume that f(x,y) is M x N. Forward DFT Inverse DFT:

Extending DFT to 2D (cont’d) Special case: f(x,y) is N x N. Forward DFT Inverse DFT u,v = 0,1,2, …, N-1 x,y = 0,1,2, …, N-1

Extending DFT to 2D (cont’d) 2D cos/sin functions

Visualizing DFT Typically, we visualize |F(u,v)| The dynamic range of |F(u,v)| is typically very large Apply streching: (c is const) |F(u,v)| |D(u,v)| original image before stretching after stretching

DFT Properties: (1) Separability The 2D DFT can be computed using 1D transforms only: Forward DFT: kernel is separable:

DFT Properties: (1) Separability (cont’d) Rewrite F(u,v) as follows: Let’s set: Then:

DFT Properties: (1) Separability (cont’d) How can we compute F(x,v)? How can we compute F(u,v)? ) N x DFT of rows of f(x,y) DFT of cols of F(x,v)

DFT Properties: (1) Separability (cont’d)

DFT Properties: (2) Periodicity The DFT and its inverse are periodic with period N

DFT Properties: (3) Translation f(x,y) F(u,v) Translation in spatial domain: Translation in frequency domain: ) N

DFT Properties: (3) Translation (cont’d) Warning: to show a full period, we need to translate the origin of the transform at u=N/2 (or at (N/2,N/2) in 2D) |F(u-N/2)| |F(u)|

DFT Properties: (3) Translation (cont’d) To move F(u,v) at (N/2, N/2), take ) N ) N

DFT Properties: (3) Translation (cont’d) no translation after translation

DFT Properties: (4) Rotation Rotating f(x,y) by θ rotates F(u,v) by θ

DFT Properties: (5) Addition/Multiplication but …

DFT Properties: (6) Scale

DFT Properties: (7) Average value F(u,v) at u=0, v=0: So:

DFT Properties:(8) Convolution Convolution is a common image processing technique that changes the intensities of a pixel to reflect the intensities of the surrounding pixels. A common use of convolution is to create image filters. Using convolution, you can get popular image effects like blur, sharpen, and edge detection The convolution theorem in two dimensions is expressed by the relations :

Magnitude and Phase of DFT What is more important? Hint: use the inverse DFT to reconstruct the input image using magnitude or phase only information magnitude phase

Magnitude and Phase of DFT (cont’d) Reconstructed image using magnitude only (i.e., magnitude determines the strength of each component!) Reconstructed image using phase only (i.e., phase determines the phase of each component!)

Magnitude and Phase of DFT (cont’d)