Chapter 7: The Fourier Transform 7.1 Introduction

Slides:



Advertisements
Similar presentations
Image Enhancement in the Frequency Domain (2)
Advertisements

Digital Image Processing
Engineering Mathematics Class #15 Fourier Series, Integrals, and Transforms (Part 3) Sheng-Fang Huang.
Fourier Transform (Chapter 4)
Frequency Domain The frequency domain
Chapter Four Image Enhancement in the Frequency Domain.
© by Yu Hen Hu 1 ECE533 Digital Image Processing Image Enhancement in Frequency Domain.
Chap 4 Image Enhancement in the Frequency Domain.
Image Processing Frequency Filtering Instructor: Juyong Zhang
Digital Image Processing
Digtial Image Processing, Spring ECES 682 Digital Image Processing Oleh Tretiak ECE Department Drexel University.
Reminder Fourier Basis: t  [0,1] nZnZ Fourier Series: Fourier Coefficient:
Chapter 4 Image Enhancement in the Frequency Domain.
CHAPTER 4 Image Enhancement in Frequency Domain
Chap 4-2. Frequency domain processing Jen-Chang Liu, 2006.
MSP15 The Fourier Transform (cont’) Lim, MSP16 The Fourier Series Expansion Suppose g(t) is a transient function that is zero outside the interval.
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.
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.
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.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 4 Image Enhancement in the Frequency Domain Chapter.
CH#3 Fourier Series and Transform
DTFT And Fourier Transform
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.
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.
Chapter 4 Fourier transform Prepared by Dr. Taha MAhdy.
Digital Image Processing CSC331 Image Enhancement 1.
ENG4BF3 Medical Image Processing Image Enhancement in Frequency Domain.
Computer Vision – Enhancement(Part III) Hanyang University Jong-Il Park.
Digital Image Processing Chapter 4: Image Enhancement in the Frequency Domain 22 June 2005 Digital Image Processing Chapter 4: Image Enhancement in the.
Astronomical Data Analysis I
CH#3 Fourier Series and Transform
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.
Frequency Domain Processing Lecture: 3. In image processing, linear systems are at the heart of many filtering operations, and they provide the basis.
University of Ioannina - Department of Computer Science Filtering in the Frequency Domain (Application) Digital Image Processing Christophoros Nikou
Practical Image Processing1 Chap7 Image Transformation  Image and Transformed image Spatial  Transformed domain Transformation.
CS654: Digital Image Analysis
Fourier Transform.
DTFT continue (c.f. Shenoi, 2006)  We have introduced DTFT and showed some of its properties. We will investigate them in more detail by showing the associated.
Image Enhancement (Frequency Domain)
Computer Graphics & Image Processing Chapter # 4 Image Enhancement in Frequency Domain 2/26/20161.
Digital Image Processing Lecture 9: Filtering in Frequency Domain Prof. Charlene Tsai.
Chapter 13 Discrete Image Transforms
Frequency domain analysis and Fourier Transform
The Frequency Domain Digital Image Processing – Chapter 8.
Fourier transform.
The Fourier Transform.
CH#3 Fourier Series and Transform 1 st semester King Saud University College of Applied studies and Community Service 1301CT By: Nour Alhariqi.
Digital Image Processing Lecture 8: Image Enhancement in Frequency Domain II Naveed Ejaz.
Fourier Transform (Chapter 4) CS474/674 – Prof. Bebis.
Digital Image Processing Lecture 8: Fourier Transform Prof. Charlene Tsai.
Digital Image Processing , 2008
DIGITAL SIGNAL PROCESSING ELECTRONICS
Image Enhancement in the
Frequency Domain Processing
All about convolution.
ENG4BF3 Medical Image Processing
2D Fourier transform is separable
4. Image Enhancement in Frequency Domain
Digital Image Processing
Fourier Transforms.
Lecture 4 Image Enhancement in Frequency Domain
ENEE222 Elements of Discrete Signal Analysis Lab 9 1.
Presentation transcript:

Chapter 7: The Fourier Transform 7.1 Introduction The Fourier transform allows us to perform tasks that would be impossible to perform any other way It is more efficient to use the Fourier transform than a spatial filter for a large filter The Fourier transform also allows us to isolate and process particular image frequencies

7.2 Background

FIGURE 7.2 A periodic function may be written as the sum of sines and cosines of varying amplitudes and frequencies

7.2 Background Fourier series These are the equations for the Fourier series expansion of f (x), and they can be expressed in complex form Fourier series

7.2 Background If the function is nonperiodic, we can obtain similar results by letting T → ∞, in which case Fourier transform pair

7.3 The One-Dimensional Discrete Fourier Transform

7.3 The One-Dimensional Discrete Fourier Transform Definition of the One-Dimensional DFT This definition can be expressed as a matrix multiplication where F is an N × N matrix defined by

7.3 The One-Dimensional Discrete Fourier Transform Given N, we shall define e.g. suppose f = [1, 2, 3, 4] so that N = 4. Then

7.3 The One-Dimensional Discrete Fourier Transform

7.3 The One-Dimensional Discrete Fourier Transform THE INVERSE DFT If you compare Equation (7.3) with Equation 7.2 you will see that there are really only two differences: There is no scaling factor 1/N The sign inside the exponential function has been changed to positive. The index of the sum is u, instead of x

7.3 The One-Dimensional Discrete Fourier Transform

7.3 The One-Dimensional Discrete Fourier Transform

7.4 Properties of the One-Dimensional DFT LINEARITY This is a direct consequence of the definition of the DFT as a matrix product Suppose f and g are two vectors of equal length, and p and q are scalars, with h = pf + qg If F, G, and H are the DFT’s of f, g, and h, respectively, we have SHIFTING Suppose we multiply each element xn of a vector x by (−1)n. In other words, we change the sign of every second element Let the resulting vector be denoted x’. The DFT X’ of x’ is equal to the DFT X of x with the swapping of the left and right halves

7.4 Properties of the One-Dimensional DFT e.g.

7.4 Properties of the One-Dimensional DFT Notice that the first four elements of X are the last four elements of X1 and vice versa

7.4 Properties of the One-Dimensional DFT SCALING where k is a scalar and F= f If you make the function wider in the x-direction, it's spectrum will become smaller in the x-direction, and vice versa Amplitude will also be changed F CONJUGATE SYMMETRY CONVOLUTION

7.4 Properties of the One-Dimensional DFT THE FAST FOURIER TRANSFORM 2n

7.5 The Two-Dimensional DFT The 2-D Fourier transform rewrites the original matrix in terms of sums of corrugations

7.5.1 Some Properties of the Two-Dimensional Fourier Transform SIMILARITY THE DFT AS A SPATIAL FILTER SEPARABILITY

7.5.1 Some Properties of the Two-Dimensional Fourier Transform LINEARITY THE CONVOLUTION THEOREM Suppose we wish to convolve an image M with a spatial filter S Pad S with zeroes so that it is the same size as M; denote this padded result by S’ Form the DFTs of both M and S’ to obtain (M)and (S’) Form the element-by-element product of these two transforms: Take the inverse transform of the result: Put simply, the convolution theorem states or

7.5.1 Some Properties of the Two-Dimensional Fourier Transform THE DC COEFFICIENT SHIFTING DC coefficient DC coefficient

7.5.1 Some Properties of the Two-Dimensional Fourier Transform CONJUGATE SYMMETRY DISPLAYING YRANSFORMS fft, which takes the DFT of a vector, ifft, which takes the inverse DFT of a vector, fft2, which takes the DFT of a matrix, ifft2, which takes the inverse DFT of a matrix, and fftshift, which shifts a transform

7.6 Fourier Transforms in MATLAB e.g. Note that the DC coefficient is indeed the sum of all the matrix values

7.6 Fourier Transforms in MATLAB e.g.

7.6 Fourier Transforms in MATLAB e.g.

7.7 Fourier Transforms of Images

FIGURE 7.10

FIGURE 7.11

FIGURE 7.12

FIGURE 7.13 EXAMPLE 7.7.2

FIGURE 7.14 EXAMPLE 7.7.3

FIGURE 7.15 EXAMPLE 7.7.4

7.7 Fourier Transforms of Images

7.8 Filtering in the Frequency Domain Ideal Filtering LOW-PASS FILTERING

FIGURE 7.16

FIGURE 7.17 D = 15

7.8 Filtering in the Frequency Domain >> cfl = cf.*b >> cfli = ifft2(cfl); >> figure, fftshow(cfli, ’abs’)

FIGURE 7.18 D = 5 D = 30

7.8 Filtering in the Frequency Domain HIGH-PASS FILTERING

FIGURE 7.19

FIGURE 7.20

7.8.2 Butterworth Filtering Ideal filtering simply cuts off the Fourier transform at some distance from the center It has the disadvantage of introducing unwanted artifacts (ringing) into the result One way of avoiding these artifacts is to use as a filter matrix, a circle with a cutoff that is less sharp

FIGURE 7.21

FIGURE 7.22 & 7.23

FIGURE 7.24

FIGURE 7.25

FIGURE 7.26 >> bl = lbutter(c,15,1); >> cfbl = cf.*bl; >> figure, fftshow(cfbl, ’log’); >> cfbli = ifft2(cfbl); >> figure, fftshow(cfbli, ’abs’)

FIGURE 7.27

7.8.3 Gaussian Filtering A wider function, with a large standard deviation, will have a low maximum

FIGURE 7.28

FIGURE 7.29

7.9 Homomorphic Filtering where f(x, y) is intensity, i(x, y) is the illumination and r(x, y) is the reflectance

7.9 Homomorphic Filtering

FIGURE 7.32 function res=homfilt(im,cutoff,order,lowgain,highgain) % HOMFILT(IMAGE,FILTER) applies homomorphic filtering % to the image IMAGE % with the given parameters u=im2uint8(im/256); u(find(u==0))=1; l=log(double(u)); ft=fftshift(fft2(l)); f=hb_butter(im,cutoff,order,lowgain,highgain); b=f.*ft; ib=abs(ifft2(b)); res=exp(ib);

FIGURE 7.33 >>i=imread(‘newborn.tif’); >>r=[1:256]’*ones(1,256); >>x=double(i).*(0.5+0.4*sin((r-32)/16)); >>imshow(i);figure;imshow(x/256);

FIGURE 7.34 >>xh=homfilt(x,10,2,0.5,2); >>imshow(xh/16);

FIGURE 7.35 >> a=imread('arch.tif'); >> figure;imshow(a); >> a1=a(:,:,1); >> figure;imshow(a1); >> a2=double(a1); >> ah=homfilt(a2,128,2,0.5,2); >> figure;imshow(ah/14);