The Discrete Fourier Transform. The Fourier Transform “The Fourier transform is a mathematical operation with many applications in physics and engineering.

Slides:



Advertisements
Similar presentations
DCSP-12 Jianfeng Feng
Advertisements

DCSP-13 Jianfeng Feng Department of Computer Science Warwick Univ., UK
DCSP-11 Jianfeng Feng
An Introduction to Fourier and Wavelet Analysis: Part I Norman C. Corbett Sunday, June 1, 2014.
Prepared by Dr. Taha MAhdy
Computer Vision Lecture 7: The Fourier Transform
Digital Kommunikationselektronik TNE027 Lecture 5 1 Fourier Transforms Discrete Fourier Transform (DFT) Algorithms Fast Fourier Transform (FFT) Algorithms.
Symmetry and the DTFT If we know a few things about the symmetry properties of the DTFT, it can make life simpler. First, for a real-valued sequence x(n),
The Discrete Fourier Transform. The spectrum of a sampled function is given by where –  or 0 .
Ch.4 Fourier Analysis of Discrete-Time Signals
LECTURE Copyright  1998, Texas Instruments Incorporated All Rights Reserved Use of Frequency Domain Telecommunication Channel |A| f fcfc Frequency.
Fourier Transform (Chapter 4)
1 Chapter 16 Fourier Analysis with MATLAB Fourier analysis is the process of representing a function in terms of sinusoidal components. It is widely employed.
Chapter Four Image Enhancement in the Frequency Domain.
1 LES of Turbulent Flows: Lecture 4 (ME EN ) Prof. Rob Stoll Department of Mechanical Engineering University of Utah Spring 2011.
Laplace Transformations
Image Enhancement in the Frequency Domain Part I Image Enhancement in the Frequency Domain Part I Dr. Samir H. Abdul-Jauwad Electrical Engineering Department.
S. Mandayam/ ECOMMS/ECE Dept./Rowan University Electrical Communications Systems ECE Spring 2007 Shreekanth Mandayam ECE Department Rowan University.
MM3FC Mathematical Modeling 3 LECTURE 1
Lecture 191 Sinusoids (7.1); Phasors (7.3); Complex Numbers (Appendix) Prof. Phillips April 16, 2003.
Lesson 18 Phasors & Complex Numbers in AC
Time and Frequency Representation
Fourier Transform 2D Discrete Fourier Transform - 2D
Discrete Time Periodic Signals A discrete time signal x[n] is periodic with period N if and only if for all n. Definition: Meaning: a periodic signal keeps.
Goals For This Class Quickly review of the main results from last class Convolution and Cross-correlation Discrete Fourier Analysis: Important Considerations.
Discrete-Time and System (A Review)
Motivation Music as a combination of sounds at different frequencies
Fourier Transforms Section Kamen and Heck.
Fourier series. The frequency domain It is sometimes preferable to work in the frequency domain rather than time –Some mathematical operations are easier.
Transforms. 5*sin (2  4t) Amplitude = 5 Frequency = 4 Hz seconds A sine wave.
: Chapter 14: The Frequency Domain 1 Montri Karnjanadecha ac.th/~montri Image Processing.
Image Enhancement in the Frequency Domain Spring 2006, Jen-Chang Liu.
Digital Signal Processing – Chapter 10
Digital Image Processing Chapter 4 Image Enhancement in the Frequency Domain Part I.
Complex Numbers. 1 August 2006 Slide 2 Definition A complex number z is a number of the form where x is the real part and y the imaginary part, written.
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.
Digital Signal Processing Chapter 3 Discrete transforms.
Fourier Analysis of Discrete Time Signals
Part 4 Chapter 16 Fourier Analysis PowerPoints organized by Prof. Steve Chapra, University All images copyright © The McGraw-Hill Companies, Inc. Permission.
Inverse DFT. Frequency to time domain Sometimes calculations are easier in the frequency domain then later convert the results back to the time domain.
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.
Lecture 7 Transformations in frequency domain 1.Basic steps in frequency domain transformation 2.Fourier transformation theory in 1-D.
Fourier Transform.
COMPLEX NUMBERS and PHASORS. OBJECTIVES  Use a phasor to represent a sine wave.  Illustrate phase relationships of waveforms using phasors.  Explain.
CS 376b Introduction to Computer Vision 03 / 17 / 2008 Instructor: Michael Eckmann.
Lecture 6 (II) COMPLEX NUMBERS and PHASORS. OBJECTIVES A.Use a phasor to represent a sine wave. B.Illustrate phase relationships of waveforms using phasors.
Learning from the Past, Looking to the Future James R. (Jim) Beaty, PhD - NASA Langley Research Center Vehicle Analysis Branch, Systems Analysis & Concepts.
Chapter 2. Characteristics of Signal ※ Signal : transmission of information The quality of the information depends on proper selection of a measurement.
Husheng Li, UTK-EECS, Fall The specification of filter is usually given by the tolerance scheme.  Discrete Fourier Transform (DFT) has both discrete.
بسم الله الرحمن الرحيم Digital Signal Processing Lecture 14 FFT-Radix-2 Decimation in Frequency And Radix -4 Algorithm University of Khartoum Department.
Fourier Transform (Chapter 4) CS474/674 – Prof. Bebis.
Convergence of Fourier series It is known that a periodic signal x(t) has a Fourier series representation if it satisfies the following Dirichlet conditions:
EE301 Phasors, Complex Numbers, And Impedance. Learning Objectives Define a phasor and use phasors to represent sinusoidal voltages and currents Determine.
Chapter 4 Discrete-Time Signals and transform
Section II Digital Signal Processing ES & BM.
COMPLEX NUMBERS and PHASORS
CE Digital Signal Processing Fall Discrete-time Fourier Transform
Part 4 Chapter 16 Fourier Analysis
Sinusoids: continuous time
2D Fourier transform is separable
4.1 DFT In practice the Fourier components of data are obtained by digital computation rather than by analog processing. The analog values have to be.
Image Processing, Leture #14
Lecture 18 DFS: Discrete Fourier Series, and Windowing
 = N  N matrix multiplication N = 3 matrix N = 3 matrix N = 3 matrix
Lecture 4 Image Enhancement in Frequency Domain
Lec.6:Discrete Fourier Transform and Signal Spectrum
ENEE222 Elements of Discrete Signal Analysis Lab 9 1.
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.
Electrical Communications Systems ECE
Presentation transcript:

The Discrete Fourier Transform

The Fourier Transform “The Fourier transform is a mathematical operation with many applications in physics and engineering that expresses a mathematical function of time as a function of frequency, known as its frequency spectrum.” – from

The Fourier Transform “For instance, the transform of a musical chord made up of pure notes (without overtones) expressed as amplitude as a function of time, is a mathematical representation of the amplitudes and phases of the individual notes that make it up.” – from

Amplitude & phase f(x) =  sin(  x +  ) +  –  is the amplitude –  is the frequency –  is the phase –  is the DC offset

More generally f(x) =  1 sin(  1 x +  1 ) +  2 sin(  2 x +  2 ) + 

The Fourier Transform “The function of time is often called the time domain representation, and the frequency spectrum the frequency domain representation.” – from

Applications differential equations geology image and signal processing optics quantum mechanics spectroscopy

REVIEW OF COMPLEX NUMBERS

Complex numbers Complex numbers... extend the 1D number line to the 2D plane are numbers that can be put into the rectangular form, a+bi where i 2 = -1, and a and b are real numbers.

Complex numbers (rectangular form)

Complex numbers Complex numbers... a is the real part; b is the imaginary part If a is 0, then a+bi is purely imaginary; if b is 0, then a+bi is a real number. originally called “fictitious” by Girolamo Cardano in the 16 th century

Complex arithmetic add/subtract – add/subtract the real and imaginary parts separately

Complex arithmetic complex conjugate – often denoted as – negate only the imaginary part

Complex arithmetic inverse where z is a complex number z bar is the length or magnitude of z a is the real part b is the imaginary part

Complex arithmetic multiplication (FOIL)

Complex arithmetic division complex conjugate of denominator

Complex numbers (polar form)

exponential vs. trigonometric Leonhard Euler (phasor form)

DFT (DISCRETE FOURIER TRANSFORM)

DFT Say we have a sequence of N (possibly complex) numbers, x 0 … x N-1. The DFT produces a sequence of N (typically complex) numbers, X 0 … X N-1, via the following:

DFT & IDFT The DFT (Discrete Fourier Transform) produces a sequence of N (typically complex) numbers, X 0 … X N-1, via the following: The IDFT (Inverse DFT) is defined as follows:

Calculating the DFT So how can we actually calculate ?

Calculating the DFT So how can we calculate? Let’s use this relationship: Then So what does this mean?

Interpretation of DFT Back to the polar form: – r/N is the amplitude and  is the phase of a sinusoid with frequency k/N into which x n is decomposed

CALCULATING THE DFT USING EXCEL

Check w/ matlab/octave % see b/ref/fft.html b/ref/fft.html N = 256;% # of samples n = (0:N-1);% subscripts b1 = 0.5;% freq 1 b2 = 2.5;% freq 2 xn = 0.5 * sin( b1*n ) * sin( b2*n ); plot( xn ); Xn = fft( xn ); plot( abs(Xn(1:N/2)) ); X0real= xn.* cos( -2*pi*n*0/N ); X0imag= xn.* sin ( -2*pi*n*0/N ); X1real= xn.* cos( -2*pi*n*1/N ); X1imag= xn.* sin ( -2*pi*n*1/N ); X2real= xn.* cos( -2*pi*n*2/N ); X2imag= xn.* sin ( -2*pi*n*2/N ); X3real= xn.* cos( -2*pi*n*3/N ); X3imag= xn.* sin ( -2*pi*n*3/N );. Note:.* is element-wise (rather than matrix) multiplication in matlab.

Add random noise. % see b/ref/fft.html b/ref/fft.html N = 256;% # of samples n = (0:N-1);% subscripts b1 = 0.5;% freq 1 b2 = 2.5;% freq 2 r = randn( 1, N );% noise xn = 0.5 * sin( b1*n ) * sin( b2*n ) * r; plot( xn ); Xn = fft( xn ); plot( abs(Xn(1:N/2)) ); X0real= xn.* cos( -2*pi*n*0/N ); X0imag= xn.* sin ( -2*pi*n*0/N ); X1real= xn.* cos( -2*pi*n*1/N ); X1imag= xn.* sin ( -2*pi*n*1/N ); X2real= xn.* cos( -2*pi*n*2/N ); X2imag= xn.* sin ( -2*pi*n*2/N ); X3real= xn.* cos( -2*pi*n*3/N ); X3imag= xn.* sin ( -2*pi*n*3/N );.

Signal without and with noise.

Signal with noise. FFT of noisy signal (two major components are still apparent).

Example of differences in phase. xn = 0.5 * sin( b1*n ) * sin( b2*n ) xn = 0.5 * sin( b1*n – 0.5 ) * sin( b2*n )

Computational complexity: DFT vs. FFT The DFT is O(N 2 ) complex multiplications. In 1965, Cooley (IBM) and Tukey (Princeton) described the FFT, a fast way (O(N log 2 N)) to compute the FT using digital computers. – It was later discovered that Gauss described this algorithm in 1805, and others had “discovered” it as well before Cooley and Tukey. – “With N = 106, for example, it is the difference between, roughly, 30 seconds of CPU time and 2 weeks of CPU time on a microsecond cycle time computer.” – from Numerical Recipes in C

Extending the DFT to 2D (and higher) Let f(x,y) be a 2D set of sampled points. Then the DFT of f is the following: (Note that engineers often use i for amps (current) so they use j for  -1 instead.)

Extending the DFT to 2D (and higher) In fact, the 2D DFT is separable so it can be decomposed into a sequence of 1D DFTs. And this can be generalized to higher and higher dimensions as well.

The classical “Gibbs phenomenon” Visit Hear it at uvY. uvY