Topic 7 - Fourier Transforms DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.

Slides:



Advertisements
Similar presentations
3-D Computational Vision CSc Image Processing II - Fourier Transform.
Advertisements

Topic 6 - Image Filtering - I DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
Fourier Transform (Chapter 4)
Fourier Transform – Chapter 13. Fourier Transform – continuous function Apply the Fourier Series to complex- valued functions using Euler’s notation to.
Lecture 5 Fourier Optics. Class Test I: Mark Distribution Mean: 40% Standard deviation: 23%
Chapter 8: The Discrete Fourier Transform
Digital Image Processing
Sampling theorem, I  Suppose function h(t) is sampled at evenly spaced intervals in time; – 1/  : Sampling rate  For any sampling interval , there.
Reminder Fourier Basis: t  [0,1] nZnZ Fourier Series: Fourier Coefficient:
Chapter 4 Image Enhancement in the Frequency Domain.
CSCE 641 Computer Graphics: Image Sampling and Reconstruction Jinxiang Chai.
Sampling (Section 4.3) CS474/674 – Prof. Bebis. Sampling How many samples should we obtain to minimize information loss during sampling? Hint: take enough.
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.
CSCE 641 Computer Graphics: Image Sampling and Reconstruction Jinxiang Chai.
Digital Image Processing Chapter 4: Image Enhancement in the Frequency Domain.
lecture 5, Sampling and the Nyquist Condition Sampling Outline  FT of comb function  Sampling Nyquist Condition  sinc interpolation Truncation.
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.
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Sampling Week 7, Fri 17 Oct 2003 p1 demos sampling.
S. Mandayam/ ECOMMS/ECE Dept./Rowan University Electrical Communications Systems ECE Spring 2007 Shreekanth Mandayam ECE Department Rowan University.
Some Properties of the 2-D Fourier Transform Translation Distributivity and Scaling Rotation Periodicity and Conjugate Symmetry Separability Convolution.
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.
Integral Transform Dongsup Kim Department of Biosystems, KAIST Fall, 2004.
Discrete-Time and System (A Review)
1 Chapter 8 The Discrete Fourier Transform 2 Introduction  In Chapters 2 and 3 we discussed the representation of sequences and LTI systems in terms.
Digital Image Processing Chapter # 4 Image Enhancement in Frequency Domain Digital Image Processing Chapter # 4 Image Enhancement in Frequency Domain.
Transforms. 5*sin (2  4t) Amplitude = 5 Frequency = 4 Hz seconds A sine wave.
Chapter 4: Image Enhancement in the Frequency Domain Chapter 4: Image Enhancement in the Frequency Domain.
Image Enhancement in the Frequency Domain Spring 2006, Jen-Chang Liu.
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.
Zhongguo Liu_Biomedical Engineering_Shandong Univ. Chapter 8 The Discrete Fourier Transform Zhongguo Liu Biomedical Engineering School of Control.
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.
Digital Image Processing (Digitaalinen kuvankäsittely) Exercise 2
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.
2D Sampling Goal: Represent a 2D function by a finite set of points.
Fourier Transform.
Dr. Abdul Basit Siddiqui FUIEMS. QuizTime 30 min. How the coefficents of Laplacian Filter are generated. Show your complete work. Also discuss different.
Topics 1 Specific topics to be covered are: Discrete-time signals Z-transforms Sampling and reconstruction Aliasing and anti-aliasing filters Sampled-data.
Computer Graphics & Image Processing Chapter # 4 Image Enhancement in Frequency Domain 2/26/20161.
2D Fourier Transform.
Fourier transform.
Digital Image Processing Lecture 7: Image Enhancement in Frequency Domain-I Naveed Ejaz.
The Fourier Transform.
Fourier Transform (Chapter 4) CS474/674 – Prof. Bebis.
1.Be able to distinguish linear and non-linear systems. 2.Be able to distinguish space-invariant from space-varying systems. 3.Describe and evaluate convolution.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Sampling and Reconstruction.
Digital Image Processing Lecture 8: Fourier Transform Prof. Charlene Tsai.
Sampling (Section 4.3) CS474/674 – Prof. Bebis.
Jean Baptiste Joseph Fourier
Integral Transform Method
Image Enhancement in the
Dr. Nikos Desypris, Oct Lecture 3
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.
ENG4BF3 Medical Image Processing
2D Fourier transform is separable
CSCE 643 Computer Vision: Image Sampling and Filtering
CSCE 643 Computer Vision: Thinking in Frequency
4. Image Enhancement in Frequency Domain
Chapter 8 The Discrete Fourier Transform
Digital Image Processing
Chapter 8 The Discrete Fourier Transform
Fourier Transforms.
Chapter 8 The Discrete Fourier Transform
Chapter 3 Sampling.
Presentation transcript:

Topic 7 - Fourier Transforms DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick

7.1 Review of The Fourier Transform Outline of this Topic 7.1 Introduction to the Fourier Transform (FT) 7.2 The Discrete Fourier Transform (DFT) 7.3 The Properties of the DFT 7.4 Computation of the DFT (via the FFT) 7.1 Introduction to the FT In 1-d, assuming continuous variables: Fourier Transform Pair may often be real, whereas F(u) is generally complex, ie Many DIP techniques rely on the application of an image transform of which the Fourier Transform is the most popular. The Fourier domain provides very important insight into the information content of the data.

Spatial Frequency The spatial frequency of this signal would be: with units of either: cycles per m (physical space) cycles per pixel (image space) F(u) is a two-side function of u (i.e. extends to +ve and –ve frequencies) If f(x) is real:

Fourier Transform of a Rectangular Function

Fourier Transform of a Gaussian Notes: The Inverse Relationship – narrow function in the spatial domain results in a wide function in the Fourier Domain. In this case F(u) is not complex ie

The Impulse or Delta Function

A Table of FT Pairs RECTANGULAR FUNCTION GAUSSIAN FUNCTION DELTA FUNCTION COSINE FUNCTION SINE FUNCTION SHAH FUNCTION

The 2-D Fourier Transform x y u v Example: The "Box Car" Function

More on Convolution Integrals The CONVOLUTION THEOREM: the Fourier Transform of the product of two functions equals the convolution of the Fourier transforms of the individual functions. Example: Convolution of a Shah Function with a Rectangular Function

7.2 The Discrete Fourier Transform (DFT) Consider a 1-d sampled dataset of dimension N: We need to evaluate F(u) on a grid of N points (in u space). A good choice for the spacing is Δu=1/X (=1 cycle across the full extent of the image)

The DFT continued Finally we set, we redistribute the normalization term and drop the dashes: EXAMPLE: Determine the DFT of a 4-point dataset with input values: f 0 = 1 f 1 = 1 f 2 = 0 f 3 = 0 |F u | u X X X X X X X X X X X X Why the periodicity?

7.3 Some Properties of the DFT (a) SAMPLING THEORY Input data stream (continuous variables) Represent sampling by a comb of delta functions s(x) [a Shah Function] The sampled version of f(x) can be represented by s(x)f(x) Assume F(u) is zero outside range -w<u<w S(u) is a Shah Function with spacing Δu=1/Δx In the Fourier domain we have the convolution S(u)*F(u) This explains the periodic nature of the DFT ie it repeats at a rate (in u) of 1/Δx However, if the bandwidth of the input signal w is too high, such that w > 1/2Δx, then the result will be  The overlap of the repeating functions results in information loss  ALIASING

Some Properties of the DFT cont. (b)SHANNON’S SAMPLING THEOREM To avoid information loss it is necessary to sample a signal at a rate equivalent to at least twice the maximum frequency component present in the signal. That is we need w < 1/2Δx, where 1/2Δx is known as the Nyquist frequency. To avoid aliasing sample at a higher rate (or alternatively filter the input data stream to remove signals above the Nyquist frequency) ✔ ✖ The process to recover the original data stream!

Some Properties of the DFT cont. (c) CHARACTER OF THE DFT Example: 1-d 8-point transform. (d) The 2-D DFT (e)The Optical Transform A trick to shift the (u,v) origin from the top left corner to the centre of the F uv image is to multiply the input image by alternate 1’s and -1’s before computing the DFT i.e. |F u | fx x  N=8

The Optical Transform

7.4 Computation of the DFT In DIP applications we need to compute the 2-d DFT The “separability” property of the 2-d transform leads to a simplification: Hence, the 2-d DFT reduces to the computation of a series of 1-d transforms. In total we require 2N 1-d transforms, each of which involves N x N complex multiplies and adds ie N 4  2N 3 calculations Step 1 involves N 1-d transforms along the rows of the original image (x N scaling) Step 2 involves N 1-d transforms down the columns of the intermediate image  f xy F xv FuvFuv 1 2 x y x v u v

The FFT Algorithm

Implementation of the FFT Algorithm

A Fortran FFT Routine Re-ordering Successive doubling

Calculating the Inverse Fourier Transform If we take the complex conjugate of the inverse transform and scale by 1/N: To calculate the Inverse Transform with a software procedure that computes the 1-d “forward” transform: (i)Convert F u  F u * (ii) Apply the forward transform (iii) Scale the result by N (iv) Convert f x *  f x

Example of a 2-d DFT calculation f xy (-1) x+y |F uv | log |F uv |

And the Inverse …. Ignoring the phase! Ignoring the amplitude! (-1) x+y

Richard Alan Peters II Example of a 2-d DFT log |F uv |

Magnitude-only Reconstruction Phase-only Reconstruction