Lecture 13 The frequency Domain (1)

Slides:



Advertisements
Similar presentations
Fourier Transform and its Application in Image Processing
Advertisements

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.
Lecture 7: Basis Functions & Fourier Series
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.
Fourier Transform – Chapter 13. Image space Cameras (regardless of wave lengths) create images in the spatial domain Pixels represent features (intensity,
Computer Graphics Recitation 6. 2 Motivation – Image compression What linear combination of 8x8 basis signals produces an 8x8 block in the image?
Computer Graphics Recitation 7. 2 Motivation – Image compression What linear combination of 8x8 basis signals produces an 8x8 block in the image?
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.
Image Fourier Transform Faisal Farooq Q: How many signal processing engineers does it take to change a light bulb? A: Three. One to Fourier transform the.
Lecture 8: Fourier Series and Fourier Transform
Fourier Analysis D. Gordon E. Robertson, PhD, FCSB School of Human Kinetics University of Ottawa.
Time and Frequency Representation
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.
The Frequency Domain Sinusoidal tidal waves Copy of Katsushika Hokusai The Great Wave off Kanagawa at
CELLULAR COMMUNICATIONS DSP Intro. Signals: quantization and sampling.
Chapter 25 Nonsinusoidal Waveforms. 2 Waveforms Used in electronics except for sinusoidal Any periodic waveform may be expressed as –Sum of a series of.
G52IIP, School of Computer Science, University of Nottingham 1 Image Transforms Fourier Transform Basic idea.
Topic 7 - Fourier Transforms DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
Discrete-Time and System (A Review)
Lecture 1 Signals in the Time and Frequency Domains
Motivation Music as a combination of sounds at different frequencies
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.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 19.
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.
Module 2 SPECTRAL ANALYSIS OF COMMUNICATION SIGNAL.
Wireless and Mobile Computing Transmission Fundamentals Lecture 2.
Seismic Reflection Data Processing and Interpretation A Workshop in Cairo 28 Oct. – 9 Nov Cairo University, Egypt Dr. Sherif Mohamed Hanafy Lecturer.
Digital Image Processing Chapter 4 Image Enhancement in the Frequency Domain Part I.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Background Any function that periodically repeats itself.
October 29, 2013Computer Vision Lecture 13: Fourier Transform II 1 The Fourier Transform In the previous lecture, we discussed the Hough transform. There.
Fourier series: Eigenfunction Approach
Spatial Frequencies Spatial Frequencies. Why are Spatial Frequencies important? Efficient data representation Provides a means for modeling and removing.
Fourier Series Fourier Transform Discrete Fourier Transform ISAT 300 Instrumentation and Measurement Spring 2000.
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.
Practical Image Processing1 Chap7 Image Transformation  Image and Transformed image Spatial  Transformed domain Transformation.
Lecture 7 Transformations in frequency domain 1.Basic steps in frequency domain transformation 2.Fourier transformation theory in 1-D.
Fourier Transform.
Fourier and Wavelet Transformations Michael J. Watts
Professor A G Constantinides 1 Discrete Fourier Transforms Consider finite duration signal Its z-tranform is Evaluate at points on z-plane as We can evaluate.
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.
Lecture 4-1CS251: Intro to AI/Lisp II Where did that edge go? April 29th, 1999.
Chapter 13 Discrete Image Transforms
The Frequency Domain Digital Image Processing – Chapter 8.
Fourier transform.
Digital Image Processing Lecture 7: Image Enhancement in Frequency Domain-I Naveed Ejaz.
Frequency Domain Representation of Biomedical Signals.
Fourier Transform (Chapter 4) CS474/674 – Prof. Bebis.
Digital Image Processing Lecture 8: Fourier Transform Prof. Charlene Tsai.
Image Enhancement and Restoration
MECH 373 Instrumentation and Measurements
Image Enhancement in the
Fourier and Wavelet Transformations
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.
CSCE 643 Computer Vision: Thinking in Frequency
Image Processing, Leture #14
Lecture 4 Image Enhancement in Frequency Domain
Lec.6:Discrete Fourier Transform and Signal Spectrum
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.
Presentation transcript:

Lecture 13 The frequency Domain (1) Dr. Masri Ayob

The Twilight Zone Spatial Domain Image data can be represented in either the spatial domain or the frequency domain. The frequency domain contains the same information as the spatial domain but in a vastly different form. Useful for data compression More efficient for certain image operations Spatial Domain For each location in the image, what is the value of the light intensity at that location? Frequency Domain For each frequency component in the image, what is power or its amplitude? Various frequency domain representations exist but the two predominant representations are the Fourier and Discrete Cosine representations. Frequency domain - an alternative representation of an image based on the frequencies of brightness or colour variation in the image.

Fourier Transform Spatial Domain vs Frequency Domain t f

Fourier Transform Why? alternative description efficient calculation less sensitive for disturbances Obey the convolution thorem More efficient, easier: convolution correlation filtering differentiating shifting compression

Applications wide ranging and ever present in modern life Fourier Transform Applications wide ranging and ever present in modern life Telecomms - GSM/cellular phones, Electronics/IT - most DSP-based applications, Entertainment - music, audio, multimedia, Accelerator control (tune measurement for beam steering/control), Imaging, image processing, Industry/research - X-ray spectrometry, chemical analysis (FT spectrometry), PDE solution, radar design, Medical - (PET scanner, CAT scans & MRI interpretation for sleep disorder & heart malfunction diagnosis, Speech analysis (voice activated “devices”, biometry, …).

Fourier Analysis Many different transforms are used in image processing (far too many begin with the letter H: Hilbert, Hartley, Hough, Hotelling, Hadamard, and Haar). The Fourier representation of any function is possible by determining The fundamental frequency The coefficient of each harmonic Fourier coefficients are typically Complex-valued Fundamental frequency is determined by the resolution of a discrete image

Spatial Frequency L = length of the cycle (period of the function). If the variation is spatial and L is a distance, then 1/L is termed the spatial frequency of the variation.

Spatial Frequency

Spatial Frequency Variation in the x – direction (u) N=100, u=3, A=127 Sin  Cosine N=100, u=3, A=127, phase = 90

Fourier Theory Techniques for the analysis and manipulation of spatial frequency. Developed a representation of functions based on frequency. The idea is “any periodic function can be represented as a sum of these simpler sinusoids”.

Fourier Analysis Any function can be represented as the sum of sine and cosine waves having different amplitudes and wavelengths. Fourier analysis is a way of determining the individual sin/cosine waves that, when added together, construct the desired signal Consider a square wave. Can it be represented as the sum of sin and cosine waves?

Fourier Theory A set of sine and cosine functions having particular frequencies are choose for the representation.  basic function

Fourier Analysis

Fourier Theory A weighted sum of these basic function is called a Fourier Series. Add a 3rd “harmonic” to the fundamental frequency. The amplitude is less than that of the base and the frequency is 3 times that of the base.

The summation of basic function Fourier Theory The weighting factors for each sine and cosine function are known as the Fourier coefficients. The summation of basic function No. of terms

Fourier Theory

Fourier Theory Add a 3rd “harmonic” to the fundamental frequency. The amplitude is less than that of the base and the frequency is 3 times that of the base.

Fourier Theory Add a 5th “harmonic” to the fundamental frequency. The amplitude is less than that of the base and the frequency is 5 times that of the base.

Add a 7th and 9th“harmonic” to the fundamental frequency. Fourier Theory Add a 7th and 9th“harmonic” to the fundamental frequency.

Adding all harmonics up to the 100th. Fourier Theory Adding all harmonics up to the 100th.

Adding all harmonics up to the 200th. Fourier Theory Adding all harmonics up to the 200th.

Fourier Theory L: period; u and v are the number of cycles fitting into one horizontal and vertical period, respectively of f(x,y).

Fourier Theory

Discrete Fourier Transform Fourier theory provides us with a means of determining the contribution made by any basic function to the representation of some function f(x). The contribution is determined by projecting f(x) onto that basis function. This procedure is described as a Fourier transform.

Discrete Fourier Transform When applying the procedure to images, we must deal explicitly with the fact that an image is: Two-dimensional Sampled Of finite extent These consideration give rise to the Discrete Fourier Transform (DFT). The DFT of an NxN image can be written: or (8.5) Complex number Processing the image in frequency domain

Discrete Fourier Transform For any particular spatial frequency specified by u and v, evaluating equation 8.5 tell us how much of that particular frequency is present in the image. There also exist an inverse Fourier Transform that convert a set of Fourier coefficients into an image. Processing the image in spatial domain

Discrete Fourier Transform F(u,v) is a complex number:

Discrete Fourier Transform The magnitudes correspond to the amplitudes of the basic images in our Fourier representation. The array of magnitudes is termed the amplitude spectrum (or sometime ‘spectrum’). The array of phases is termed the phase spectrum. The power spectrum is simply the square of its amplitude spectrum:

Discrete Fourier Transform

Discrete Fourier Transform If we attempt to reconstruct the image with an inverse Fourier Transform after destroying either the phase information or the amplitude information, then the reconstruction will fail.

FFT The Fast Fourier Transform is one of the most important algorithms ever developed Developed by Cooley and Tukey in mid 60s. Is a recursive procedure that uses some cool math tricks to combine sub-problem results into the overall solution.

DFT vs FFT

DFT vs FFT

DFT vs FFT

Periodicity The DFT assumes that an image is part of an infinitely repeated set of “tiles” in every direction. This is the same effect as “circular indexing”.

Periodicity and Windowing Since “tiling” an image causes “fake” discontinuities, the spectrum includes “fake” high-frequency components Spatial discontinuities Windowing minimizes the artificial discontinuities by pre-processing pixel values prior to computing the DFT. Pixel values are modulated so that they gradually fall to zero at the edges. Three well-known windowing functions: Bartlett Hanning Blackman

Windowing Functions Bartlett Hanning Blackman R is a distance from the centre of the image and rmax is its maximum value. Hanning Bartlett Blackman

FFT Package com.pearsoneduc.ip.op

FFT Package com.pearsoneduc.ip.op

Thank you Q&A