240-373: Chapter 14: The Frequency Domain 1 Montri Karnjanadecha ac.th/~montri 240-373 Image Processing.

Slides:



Advertisements
Similar presentations
1 Fast Multiplication of Large Numbers Using Fourier Techniques Henry Skiba Advisor: Dr. Marcus Pendergrass.
Advertisements

Computer Vision Lecture 7: The Fourier Transform
Fourier Transform (Chapter 4)
Frequency Domain The frequency domain
DFT/FFT and Wavelets ● Additive Synthesis demonstration (wave addition) ● Standard Definitions ● Computing the DFT and FFT ● Sine and cosine wave multiplication.
Chapter Four Image Enhancement in the Frequency Domain.
Digital Image Processing
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.
The Fourier Transform Jean Baptiste Joseph Fourier.
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.
The Fourier Transform Jean Baptiste Joseph Fourier.
Input image Output image Transform equation All pixels Transform equation.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 4 Image Enhancement in the Frequency Domain Chapter.
Topic 7 - Fourier Transforms DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
Motivation Music as a combination of sounds at different frequencies
The Discrete Fourier Transform. The Fourier Transform “The Fourier transform is a mathematical operation with many applications in physics and engineering.
CSC589 Introduction to Computer Vision Lecture 7 Thinking in Frequency Bei Xiao.
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 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
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.
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.
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.
Frequency Domain Processing Lecture: 3. In image processing, linear systems are at the heart of many filtering operations, and they provide the basis.
Fourier Transform.
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.
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.
Chapter 13 Discrete Image Transforms
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.
Digital Image Processing Lecture 7: Image Enhancement in Frequency Domain-I Naveed Ejaz.
Fourier Transform and Spectra
بسم الله الرحمن الرحيم 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.
The content of lecture This lecture will cover: Fourier Transform
The Fourier Transform Jean Baptiste Joseph Fourier.
Image Enhancement and Restoration
Section II Digital Signal Processing ES & BM.
The Fourier Transform Jean Baptiste Joseph Fourier.
Image Enhancement in the
Frequency Domain Processing
ENG4BF3 Medical Image Processing
2D Fourier transform is separable
Image Processing, Leture #14
4. Image Enhancement in Frequency Domain
Digital Image Processing
Applications of Frequency Domain Processing
The Fourier Transform Jean Baptiste Joseph Fourier.
The Fourier Transform Jean Baptiste Joseph Fourier.
Lecture 4 Image Enhancement in Frequency Domain
Discrete Fourier Transform
ENEE222 Elements of Discrete Signal Analysis Lab 9 1.
Applications of Frequency Domain Processing
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.
Even Discrete Cosine Transform The Chinese University of Hong Kong
Presentation transcript:

: Chapter 14: The Frequency Domain 1 Montri Karnjanadecha ac.th/~montri Image Processing

: Chapter 14: The Frequency Domain 2 Chapter 14 The Frequency Domain

: Chapter 14: The Frequency Domain 3 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 (number of times the wave repeats itself in a given length) p--phase (position that the wave starts) Usually phase is ignored in image processing

: Chapter 14: The Frequency Domain 4

5

6 The Hartley Transform Discrete Hartley Transform (DHT) –The M x N image is converted into a second image (also M x N) –M and N should be power of 2 (e.g..., 128, 256, 512, etc.) –The basic transform depends on calculating the following for each pixel in the new M x N array

: Chapter 14: The Frequency Domain 7 The Hartley Transform where f(x,y) is the intensity of the pixel at position (x,y) H(u,v) is the value of element in frequency domain –The results are periodic –The cosine+sine (CAS) term is call “the kernel of the transformation” (or ”basis function”)

: Chapter 14: The Frequency Domain 8 The Hartley Transform Fast Hartley Transform (FHT) –M and N must be power of 2 –Much faster than DHT –Equation:

: Chapter 14: The Frequency Domain 9 The Fourier Transform The Fourier transform –Each element has real and imaginary values –Formula: –f(x,y) is point (x,y) in the original image and F(u,v) is the point (u,v) in the frequency image

: Chapter 14: The Frequency Domain 10 The Fourier Transform Discrete Fourier Transform (DFT) –Imaginary part –Real part –The actual complex result is F i (u,v) + F r (u,v)

: Chapter 14: The Frequency Domain 11 Fourier Power Spectrum and Inverse Fourier Transform Fourier power spectrum Inverse Fourier Transform

: Chapter 14: The Frequency Domain 12 Fourier Power Spectrum and Inverse Fourier Transform Fast Fourier Transform (FFT) –Much faster than DFT –M and N must be power of 2 –Computation is reduced from M 2 N 2 to MN log 2 M. log 2 N (~1/1000 times)

: Chapter 14: The Frequency Domain 13 Fourier Power Spectrum and Inverse Fourier Transform Optical transformation –A common approach to view image in frequency domain Original image Transformed image AB DC CD BA

: Chapter 14: The Frequency Domain 14 Power and Autocorrelation Functions Power function: Autocorrelation function –Inverse Fourier transform of or –Hartley transform of

: Chapter 14: The Frequency Domain 15 Hartley vs Fourier Transform

: Chapter 14: The Frequency Domain 16 Interpretation of the power function

: Chapter 14: The Frequency Domain 17 Applications of Frequency Domain Processing Convolution in the frequency domain

: Chapter 14: The Frequency Domain 18 Applications of Frequency Domain Processing –useful when the image is larger than 1024x1024 and the template size is greater than 16x16 –Template and image must be the same size

: Chapter 14: The Frequency Domain 19 –Use FHT or FFT instead of DHT or DFT –Number of points should be kept small –The transform is periodic zeros must be padded to the image and the template minimum image size must be (N+n-1) x (M+m-1) –Convolution in frequency domain is “real convolution” Normal convolution Real convolution

: Chapter 14: The Frequency Domain 20

: Chapter 14: The Frequency Domain 21 –Convolution in frequency domain is “real convolution” Normal convolution Real convolution

: Chapter 14: The Frequency Domain 22 Convolution using the Fourier transform Technique 1: Convolution using the Fourier transform USE: To perform a convolution OPERATION: –zero-padding both the image (MxN) and the template (m x n) to the size (N+n-1) x (M+m-1) –Applying FFT to the modified image and template –Multiplying element by element of the transformed image against the transformed template

: Chapter 14: The Frequency Domain 23 Convolution using the Fourier transform OPERATION: (cont’d) –Multiplication is done as follows: F(image) F(template) F(result) (r 1,i 1 ) (r 2, i 2 ) (r 1 r 2 - i 1 i 2, r 1 i 2 +r 2 i 1 ) i.e. 4 real multiplications and 2 additions –Performing Inverse Fourier transform

: Chapter 14: The Frequency Domain 24 Hartley convolution Technique 2: Hartley convolution USE: To perform a convolution OPERATION: –zero-padding both the image (MxN) and the template (m x n) to the size (N+n-1) x (M+m-1) image template

: Chapter 14: The Frequency Domain 25 Hartley convolution –Applying Hartley transform to the modified image and template image template

: Chapter 14: The Frequency Domain 26 Hartley convolution –Multiplying them by evaluating:

: Chapter 14: The Frequency Domain 27 Hartley convolution: Cont’d Giving: –Performing Inverse Hartley transform, gives:

: Chapter 14: The Frequency Domain 28 Hartley convolution: Cont’d

: Chapter 14: The Frequency Domain 29 Deconvolution Convolution R = I * T Deconvolution I = R * -1 T Deconvolution of R by T = convolution of R by some ‘inverse’ of the template T (T’)

: Chapter 14: The Frequency Domain 30 Deconvolution Consider periodic convolution as a matrix operation. For example

: Chapter 14: The Frequency Domain 31 Deconvolution is equivalent to A B C AB = C ABB -1 = CB -1 A = CB -1