Introduction to the Fourier transform. Computer Vision & Digital Image Processing. The Fourier transform (continued) The Fourier transform (continued)

Similar documents
Introduction to the Fourier transform. Computer Vision & Digital Image Processing. The Fourier transform (continued) The Fourier transform (continued)

G52IVG, School of Computer Science, University of Nottingham

Introduction to Fourier Analysis Part 2. CS 510 Lecture #7 January 31, 2018

Contents. Signals as functions (1D, 2D)

Contents. Signals as functions (1D, 2D)

Contents. Signals as functions (1D, 2D)

Key Intuition: invertibility

Computer Vision & Digital Image Processing. Periodicity of the Fourier transform

Fourier series: Any periodic signals can be viewed as weighted sum. different frequencies. view frequency as an

Digital Image Processing

FILTERING IN THE FREQUENCY DOMAIN

Introduction to Fourier Analysis. CS 510 Lecture #5 February 2 nd 2015

Chapter 4 Image Enhancement in the Frequency Domain

Fourier Matching. CS 510 Lecture #7 February 8 th, 2013

2. Image Transforms. f (x)exp[ 2 jπ ux]dx (1) F(u)exp[2 jπ ux]du (2)

MIT 2.71/2.710 Optics 10/31/05 wk9-a-1. The spatial frequency domain

Reference Text: The evolution of Applied harmonics analysis by Elena Prestini

Lecture # 06. Image Processing in Frequency Domain

Image Processing 2. Hakan Bilen University of Edinburgh. Computer Graphics Fall 2017

Overview. Signals as functions (1D, 2D) 1D Fourier Transform. 2D Fourier Transforms. Discrete Fourier Transform (DFT) Discrete Cosine Transform (DCT)

Lecture 4 Filtering in the Frequency Domain. Lin ZHANG, PhD School of Software Engineering Tongji University Spring 2016

3 rd class Mech. Eng. Dept. hamdiahmed.weebly.com Fourier Series

Mathematics 324 Riemann Zeta Function August 5, 2005

GBS765 Electron microscopy

SEISMIC WAVE PROPAGATION. Lecture 2: Fourier Analysis

ECE 425. Image Science and Engineering

MATLAB Laboratory 10/14/10 Lecture. Taylor Polynomials

3. Lecture. Fourier Transformation Sampling

1 Separation of Variables

Candidates are expected to have available a calculator. Only division by (x + a) or (x a) will be required.

MA 242 Review Exponential and Log Functions Notes for today s class can be found at

AMS 147 Computational Methods and Applications Lecture 13 Copyright by Hongyun Wang, UCSC

ECG782: Multidimensional Digital Signal Processing

Digital Image Processing. Image Enhancement: Filtering in the Frequency Domain

Frequency2: Sampling and Aliasing

1-D MATH REVIEW CONTINUOUS 1-D FUNCTIONS. Kronecker delta function and its relatives. x 0 = 0

Pre-calculus 12 Curriculum Outcomes Framework (110 hours)

Mathematical Methods: Fourier Series. Fourier Series: The Basics

AMS 212A Applied Mathematical Methods I Lecture 14 Copyright by Hongyun Wang, UCSC. with initial condition

ECG782: Multidimensional Digital Signal Processing

Campus Academic Resource Program Chain Rule

DISCRETE FOURIER TRANSFORM

Higher-order ordinary differential equations

The Discrete Fourier Transform

Waves, the Wave Equation, and Phase Velocity. We ll start with optics. The one-dimensional wave equation. What is a wave? Optional optics texts: f(x)

2D Discrete Fourier Transform (DFT)

CMPT 318: Lecture 5 Complex Exponentials, Spectrum Representation

F(u) = f e(t)cos2πutdt + = f e(t)cos2πutdt i f o(t)sin2πutdt = F e(u) + if o(u).

Name (print): Lab (circle): W8 Th8 Th11 Th2 F8. θ (radians) θ (degrees) cos θ sin θ π/ /2 1/2 π/4 45 2/2 2/2 π/3 60 1/2 3/2 π/

Advanced Training Course on FPGA Design and VHDL for Hardware Simulation and Synthesis. 26 October - 20 November, 2009

Review of Integration Techniques

Discrete Fourier Transform

Convolution Spatial Aliasing Frequency domain filtering fundamentals Applications Image smoothing Image sharpening

Physics 342 Lecture 2. Linear Algebra I. Lecture 2. Physics 342 Quantum Mechanics I

CEG4311 Digital Image Processing Dec. 21, Professor: Eric Dubois

Chapter 4 Image Enhancement in the Frequency Domain

Chapter 3a Topics in differentiation. Problems in differentiation. Problems in differentiation. LC Abueg: mathematical economics

Mathematics for Chemists 2 Lecture 14: Fourier analysis. Fourier series, Fourier transform, DFT/FFT

Linear Operators and Fourier Transform

0J2 - Mechanics Lecture Notes 2

Ch3. Generating Random Variates with Non-Uniform Distributions

Probability Density Under Transformation

Fourier Transform. sin(n# x)), where! = 2" / L and

42. Change of Variables: The Jacobian

Fourier Series Example

Math Practice Exam 3 - solutions

2.6 Logarithmic Functions. Inverse Functions. Question: What is the relationship between f(x) = x 2 and g(x) = x?

Circuits and Systems I

Overview of Complex Numbers

I. Signals & Sinusoids

Lecture 24. Scott Pauls 5/21/07

The Fourier spectral method (Amath Bretherton)

( ) a (graphical) transformation of y = f ( x )? x 0,2π. f ( 1 b) = a if and only if f ( a ) = b. f 1 1 f

Physics 342 Lecture 2. Linear Algebra I. Lecture 2. Physics 342 Quantum Mechanics I

Music 270a: Complex Exponentials and Spectrum Representation

Fourier transforms. c n e inπx. f (x) = Write same thing in an equivalent form, using n = 1, f (x) = l π

G: Uniform Convergence of Fourier Series

Equidistant curve coordinate system. Morio Kikuchi

Mathematical Review for Signal and Systems

Image Enhancement in the frequency domain. Inel 5046 Prof. Vidya Manian

VII. Bandwidth Limited Time Series

PreCalculus Honors Curriculum Pacing Guide First Half of Semester

Math 1272 Solutions for Fall 2005 Final Exam

Conditional Distributions

Milford Public Schools Curriculum. Department: Mathematics Course Name: Precalculus Level 1

Indefinite Integration

1 + lim. n n+1. f(x) = x + 1, x 1. and we check that f is increasing, instead. Using the quotient rule, we easily find that. 1 (x + 1) 1 x (x + 1) 2 =

1 Wyner PreCalculus Fall 2013

Math Precalculus Blueprint Assessed Quarter 1

Algebra 2. Chapter 4 Exponential and Logarithmic Functions. Chapter 1 Foundations for Functions. Chapter 3 Polynomial Functions

Convolution/Modulation Theorem. 2D Convolution/Multiplication. Application of Convolution Thm. Bioengineering 280A Principles of Biomedical Imaging

Information and Communications Security: Encryption and Information Hiding

Gradient, Divergence and Curl in Curvilinear Coordinates

LECTURE 19: SEPARATION OF VARIABLES, HEAT CONDUCTION IN A ROD

Math 265 (Butler) Practice Midterm III B (Solutions)

Logarithmic, Exponential, and Other Transcendental Functions

Math 10C - Fall Final Exam

3. On the grid below, sketch and label graphs of the following functions: y = sin x, y = cos x, and y = sin(x π/2). π/2 π 3π/2 2π 5π/2

BOOK CORRECTIONS, CLARIFICATIONS, AND CORRECTIONS TO PROBLEM SOLUTIONS

We know that f(x, y) and F (u, v) form a Fourier Transform pair, i.e. f(ax, by)e j2π(ux+vy) dx dy. x x. a 0 J = y y. = 0 b

Transcription:

Introduction to the Fourier transform Computer Vision & Digital Image Processing Fourier Transform Let f(x) be a continuous function of a real variable x The Fourier transform of f(x), denoted by I {f(x)} is given by: + I{ f ( x)} f ( x) exp[ jπux dx where j Given, f(x) can be obtained by using the inverse Fourier transform: I { } f ( x) exp[ jπux du. + Dr. D. J. Jackson Lecture 8- Dr. D. J. Jackson Lecture 8- The Fourier transform (continued) These two equations, called the Fourier transform pair, exist if f(x) is continuous and integrable and is integrable. These conditions are almost always satisfied in practice. We are concerned with functions f(x) which are real, however the Fourier transform of a real function is, generally, complex. So, F ( R( + ji ( where R( and I( denote the real and imaginary components of respectively. The Fourier transform (continued) Expressed in exponential form, is: where and ϕ( tan e F ( R ( + I ( I( R( jϕ ( The magnitude function is called the Fourier spectrum of f(x) and ϕ( is the phase angle. Dr. D. J. Jackson Lecture 8-3 Dr. D. J. Jackson Lecture 8-

The Fourier transform (continued) The square of the spectrum, P( R ( + I ( is commonly called the power spectrum (or the spectral densit of f(x). The variable u is often called the frequency variable. This name arises from the expression of the exponential term exp[-jπux in terms of sines and cosines (from Euler s formula): The Fourier transform (continued) Interpreting the integral in the Fourier transform equation as a limit summation of discrete terms make it obvious that: is composed of an infinite sum of sine and cosine terms. Each value of u determines the frequency of its corresponding sine-cosine pair. exp[ jπux cos(πux) j sin(πux) Dr. D. J. Jackson Lecture 8-5 Dr. D. J. Jackson Lecture 8-6 Fourier transform example Consider the following simple function. The Fourier transform is: f(x) X x + X f ( x)exp[ jπux dx exp[ jπux dx [ e jπu [ e jπu jπux X jπux e sin( πux ) e πu [ e jπu jπux jπux e jπux j πux Fourier transform example (continued) This is a complex function. The Fourier spectrum is: sin( πux) e πu sin( πux) X ( πux) jπux plot of looks like the following: Dr. D. J. Jackson Lecture 8-7 Dr. D. J. Jackson Lecture 8-8

The -D Fourier transform The Fourier transform can be extended to dimensions: + I{ } and the inverse transform I { } jπ ( ux + v dxdy. + exp[ jπ ( ux + v dudv. The -D Fourier transform (continued) The -D Fourier spectrum is: F ( R ( + I ( The phase angle is: ϕ( tan The power spectrum is: I( R( P( R ( + I ( Dr. D. J. Jackson Lecture 8-9 Dr. D. J. Jackson Lecture 8- Sample -D function and its Fourier spectrum Example -D Fourier transform + X jπ ( ux + v dxdy exp[ jπux dx exp[ jπvy dy j πux jπvy e X e Y [ [ jπu jπv [ e jπu jπux sin( πux ) e XY[ ( πux ) Y [ e jπy jπux jπvy sin( πvy ) e [ ( πvy) sin( πux ) sin( πvy) The spectrum is XY[ [ ( πux ) ( πvy) jπvy Dr. D. J. Jackson Lecture 8- Dr. D. J. Jackson Lecture 8-

Example -D functions and their spectra The discrete Fourier transform Suppose a continuous function, f(x), is discretized into a sequence {f(x ), f(x +Δx), f(x +Δx),.., f(x +[-Δx)} by taking samples Δx units apart Let x refer to either a continuous or discrete value by saying f ( x) f ( x + xδx) where x assumes the discrete values,,, - and {f(),f(),,f(-)} denotes any uniformly spaced samples from a corresponding continuous function Dr. D. J. Jackson Lecture 8-3 Dr. D. J. Jackson Lecture 8- Sampling a continuous function The discrete Fourier transform pair The discrete Fourier transform is given by: f ( x)exp[ jπux / x for u,,,- The discrete inverse Fourier transform is given by: f ( x) exp[ jπux / u for x,,,- The values of u,,,-in the discrete case correspond to samples of the continuous transform at, Δ Δ, (- )Δu Δu and Δx are related by Δu/( Δx) Dr. D. J. Jackson Lecture 8-5 Dr. D. J. Jackson Lecture 8-6

The -D discrete Fourier transform In the -D case: M M x y for u M- and v - M u v jπ ( ux / M + vy / ) exp[ jπ ( ux / M + vy / ) for x M- and y - The discrete function f(x, represents samples of the continuous function at f(x +xδx, y +yδ Δu/(MΔx) and Δv/(Δ The -D discrete Fourier transform (continued) For the case when M (such as in a square image) and x y u v jπ ( ux + v / exp[ jπ ( ux + v / ote each expression in this case has a / term. The grouping of these constant multiplier terms in the Fourier transform pair is arbitrary. Dr. D. J. Jackson Lecture 8-7 Dr. D. J. Jackson Lecture 8-8 Discrete Fourier transform example Discrete Fourier transform example (continued) The four corresponding Fourier transform terms are 3 ) f ( x)exp[ x [ f () + f () + f () + f (3) [ + 3+ + 3.5 3 ) f ( x)exp[ jπ / x jπ / jπ [e + 3e + e + e [ + j j3π / Consider sampling at x.5, x.75, x., and x 3.5 Here Δx.5 and x ranges from 3 F ( ) [ + j F ( 3) [ + j Dr. D. J. Jackson Lecture 8-9 Dr. D. J. Jackson Lecture 8-

Discrete Fourier transform example (continued) The Fourier spectrum is then ) [( / ) ) [(/ ) 3) [( / ) ) 3.5 + (/ ) + ( / ) + (/ ) / / / 5 5 Properties of the -D Fourier transform The dynamic range of the Fourier spectra is generally higher than can be displayed common technique is to display the function [ ) D ( c log + v where c is a scaling factor and the logarithm function performs a compression of the data c is usually chosen to scale the data into the range of the display device, [-55 typically ([-56 for 56 gray-level MTLB image) Dr. D. J. Jackson Lecture 8- Dr. D. J. Jackson Lecture 8- Separability Separability (continued) The discrete transform pair can be written in separable forms x for v,,,- exp[ jπux / u for x,y,,,- So, or f(x, can be obtained in steps by successive applications of the -D Fourier transform or its inverse. exp[ jπux / y v jπvy / exp[ jπvy / The -D transform can be expressed as where x x, y x, exp[ jπux / jπvy / Graphically, the process is as follows f(x,,,-,,-,,- Row transforms Multiply by x, Column transforms -, -, -, Dr. D. J. Jackson Lecture 8-3 Dr. D. J. Jackson Lecture 8-

Translation The translation properties of the Fourier transform pair are and jπ ( ux + v / u v f ( x x, y exp[ jπ ( ux + v / where the double arrow indicates a correspondence between a function and its Fourier transform (or vice versa) Multiplying f(x, by the exponential and taking the transform results in a shift of the origin of the frequency plane to the point (u,v ). Translation (continued) For our purposes, u v /. Therefore, and exp[ jπ ( u x + v / e jπ ( x+ ( ) x+ y x+ y ( ) u /, v / ) So, the origin of the Fourier transform of f(x, can be moved to the center of the corresponding x simply by multiplying f(x, by (-) x+y before taking the transform ote: This does not affect the magnitude of the Fourier transform Dr. D. J. Jackson Lecture 8-5 Dr. D. J. Jackson Lecture 8-6 Matlab example Matlab example (continued) %Create data for the test fzeros(8); for x:6 for y:6 f(x,8; end end % Perform a translation shift on f(x, for x:8 for y:8 f(x,f(x,*((-)^(x+); end end % Compute the -D discrete Fourier transform Ffft(f); % Compute the Fourier spectrum Fspectsqrt(real(F).^+imag(F).^); % Construct a scaling factor based on % the dynamic range of the spectrum FspectMXmax(max(Fspect)); % Compute D, the scaled data D(56/(log(+FspectMX)))*log(+Fspect); figure(); % Plot, as an image, a subset of D image(d(56:7,56:7));colormap(gray(56)); Dr. D. J. Jackson Lecture 8-7 Dr. D. J. Jackson Lecture 8-8

Example image and complete, scaled Fourier spectrum plot Example image and partial, scaled Fourier spectrum plot (with shifted f(x,) Dr. D. J. Jackson Lecture 8-9 Dr. D. J. Jackson Lecture 8-3