G52IIP, School of Computer Science, University of Nottingham 1 Image Transforms Basic idea Input Image, I(x,y) (spatial domain) Mathematical Transformation.

Slides:



Advertisements
Similar presentations
Computer Vision Lecture 7: The Fourier Transform
Advertisements

Image Enhancement in the Frequency Domain (2)
Spatial Filtering (Chapter 3)
Image Processing Lecture 4
Digital Image Processing
Fourier Transform (Chapter 4)
Chapter Four Image Enhancement in the Frequency Domain.
Chap 4 Image Enhancement in the Frequency Domain.
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.
CSCE 641 Computer Graphics: Image Sampling and Reconstruction Jinxiang Chai.
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.
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.
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.
Some Properties of the 2-D Fourier Transform Translation Distributivity and Scaling Rotation Periodicity and Conjugate Symmetry Separability Convolution.
Computational Photography: Fourier Transform Jinxiang Chai.
Chapter 4 Image Enhancement in the Frequency Domain.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 4 Image Enhancement in the Frequency Domain Chapter.
CHAPTER 8 Fourier Filters IMAGE ANALYSIS A. Dermanis.
G52IIP, School of Computer Science, University of Nottingham 1 Image Transforms Fourier Transform Basic idea.
Presentation Image Filters
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.
Image Enhancement in the Frequency Domain Spring 2006, Jen-Chang Liu.
1 Lecture III Shobhit Niranjan Gaurav Gupta. 2 Convolution Definition: For discrete functions: Properties Commutativity Associativity Distributivity.
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.
Digital Image Processing CSC331 Image Enhancement 1.
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.
October 29, 2013Computer Vision Lecture 13: Fourier Transform II 1 The Fourier Transform In the previous lecture, we discussed the Hough transform. There.
DCT.
G52IIP, School of Computer Science, University of Nottingham 1 G52IIP 2011 Summary Topic 1 Overview of the course Related topics Image processing Computer.
Image Subtraction Mask mode radiography h(x,y) is the mask.
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.
Practical Image Processing1 Chap7 Image Transformation  Image and Transformed image Spatial  Transformed domain Transformation.
Filtering x y.
Fourier Transform.
Frequency Domain By Dr. Rajeev Srivastava. Image enhancement in the frequency domain is straightforward. We simply compute the Fourier transform of the.
CS 376b Introduction to Computer Vision 03 / 17 / 2008 Instructor: Michael Eckmann.
Image hole-filling. Agenda Project 2: Will be up tomorrow Due in 2 weeks Fourier – finish up Hole-filling (texture synthesis) Image blending.
Computer Graphics & Image Processing Chapter # 4 Image Enhancement in Frequency Domain 2/26/20161.
2D Fourier Transform.
BYST Xform-1 DIP - WS2002: Fourier Transform Digital Image Processing Bundit Thipakorn, Ph.D. Computer Engineering Department Fourier Transform and Image.
Frequency Domain Filtering. Frequency Domain Methods Spatial Domain Frequency Domain.
Fourier transform.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Fourier Transform (Chapter 4) CS474/674 – Prof. Bebis.
Jean Baptiste Joseph Fourier
The content of lecture This lecture will cover: Fourier Transform
Spatial & Frequency Domain
Image Enhancement in the
Frequency Domain Processing
(C) 2002 University of Wisconsin, CS 559
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
4. Image Enhancement in Frequency Domain
Filtering in the Frequency Domain
Lecture 4 Image Enhancement in Frequency Domain
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:

G52IIP, School of Computer Science, University of Nottingham 1 Image Transforms Basic idea Input Image, I(x,y) (spatial domain) Mathematical Transformation F( ) Transformed Image F(u, v) Processing F(u,v) Inverse Transformation F -1 ( ) Output Image, I’(x,y) (spatial domain)

G52IIP, School of Computer Science, University of Nottingham 2 Image Transforms Fourier Transform There are many different transformations, Fourier Transform (FT) or its fast implementation (FFT) is the most well-known. For the purpose of this course, we will treat FFT as a black box, and will not go through the detail mathematics (i.e., not required). Instead of formal mathematics, which will be more elegant, we will try to explain the essential idea of FFT informally.

G52IIP, School of Computer Science, University of Nottingham 3 Image Transforms Fourier Transform – Essential idea Any given function (an image is a 2D function) can be approximated by a weighted sum of sines and conses.

G52IIP, School of Computer Science, University of Nottingham 4 Image Transforms Fourier Transform Basic idea

G52IIP, School of Computer Science, University of Nottingham 5 Image Transforms f(t) Cos(  t) Cos(  t/2) Cos(2  t) f(t) f(t) = Cos(  t/2)+Cos(  t)+Cos(2  t)

G52IIP, School of Computer Science, University of Nottingham 6 Image Transforms In general, The weight, F i, indicates the importance of cos(u i t) u i represents the frequency of the cosine signal A larger u i, cos(u i t) changes faster -> higher frequency component of f(t) A smaller u i, cos(u i t) changes slower -> lower frequency component of f(t) f(t)

G52IIP, School of Computer Science, University of Nottingham 7 Image Transforms f(t) Cos(  t) Cos(  t/2) Cos(2  t) f(t) = Cos(  t/2)+Cos(  t)+Cos(2  t) F 1 = 1u 1 =  /2 F 2 = 1 u 2 =  F 3 = 1 u 3 = 2 

G52IIP, School of Computer Science, University of Nottingham 8 Image Transforms f(t) Cos(  t) Cos(  t/2) Cos(2  t) f(t) = 5*Cos(  t/2)+2*Cos(  t)+Cos(2  t) F 1 = 5u 1 =  /2 F 2 = 2 u 2 =  F 3 = 1 u 3 = 2 

G52IIP, School of Computer Science, University of Nottingham 9 Image Transforms f(t) Cos(  t) Cos(  t/2) Cos(2  t) f(t) = Cos(  t/2)+2*Cos(  t)+5*Cos(2  t) F 1 = 1u 1 =  /2 F 2 = 2 u 2 =  F 3 = 5 u 3 = 2 

G52IIP, School of Computer Science, University of Nottingham 10 Image Transforms f(t) F 1 = 1u 1 =  /2 F 2 = 2 u 2 =  F 3 = 5 u 3 = 2  F 1 = 5u 1 =  /2 F 2 = 2 u 2 =  F 3 = 1 u 3 = 2  F 1 = 1u 1 =  /2 F 2 = 1 u 2 =  F 3 = 1 u 3 = 2  f(t) = F 1 *Cos(  t/2)+F 3 *Cos(  t)+F 3 *Cos(2  t)

G52IIP, School of Computer Science, University of Nottingham 11 Image Transforms f(t) F 1 = 1u 1 =  /2 F 2 = 2 u 2 =  F 3 = 5 u 3 = 2  F 1 = 5u 1 =  /2 F 2 = 2 u 2 =  F 3 = 1 u 3 = 2  F 1 = 1u 1 =  /2 F 2 = 1 u 2 =  F 3 = 1 u 3 = 2  f(t) = F 1 *Cos(  t/2)+F 3 *Cos(  t)+F 3 *Cos(2  t)

G52IIP, School of Computer Science, University of Nottingham 12 Image Transforms f(t) F 1 = 1u 1 =  /2 F 2 = 2 u 2 =  F 3 = 5 u 3 = 2  F 1 = 5u 1 =  /2 F 2 = 2 u 2 =  F 3 = 1 u 3 = 2  F 1 = 1u 1 =  /2 F 2 = 1 u 2 =  F 3 = 1 u 3 = 2  f(t) = F 1 *Cos(  t/2)+F 3 *Cos(  t)+F 3 *Cos(2  t) Power spectrum or Frequency Distribution

G52IIP, School of Computer Science, University of Nottingham 13 Image Transforms f(t) F 1 = 1u 1 =  /2 F 2 = 2 u 2 =  F 3 = 5 u 3 = 2  F 1 = 5u 1 =  /2 F 2 = 2 u 2 =  F 3 = 1 u 3 = 2  F 1 = 1u 1 =  /2 F 2 = 1 u 2 =  F 3 = 1 u 3 = 2  f(t) = F 1 *Cos(  t/2)+F 3 *Cos(  t)+F 3 *Cos(2  t) What can we tell about the function (image) from its frequency distribution?

G52IIP, School of Computer Science, University of Nottingham 14 Image Transforms Fourier Transform – so far our informal illustration f(t) FFT F(u) FFT

G52IIP, School of Computer Science, University of Nottingham 15 Image Transforms Fourier Transform – Actual f(t) FFT F(u) FFT F(u) u A continuous function rather than discrete

G52IIP, School of Computer Science, University of Nottingham 16 Image Transforms Fourier Transform – Actual f(t) F(u) u Similar to the discrete case, from F(u), we can tell something about the signal f(t) F(u) u

G52IIP, School of Computer Science, University of Nottingham 17 Image Transforms Fourier Transform – To summaries From F(u), we can tell something about its spatial signal, whether it contains fast/slow changing features f(t) FFT F(u) FFT F(u)

G52IIP, School of Computer Science, University of Nottingham 18 Image Transforms Now, come back to the idea of frequency domain processing F’( ) Input Image, I(x,y) (spatial domain) Mathematical Transformation F( ) Transformed Image F(u, v) Processing F(u,v) Inverse Transformation F ’ ( ) Output Image, I’(x,y) (spatial domain) F’F’

G52IIP, School of Computer Science, University of Nottingham 19 Image Transforms Now, come back to the idea of frequency domain processing F’( ) Input Image, I(x,y) (spatial domain) Mathematical Transformation F( ) Transformed Image F(u, v) Processing F(u,v) Inverse Transformation F ’ ( ) Output Image, I’(x,y) (spatial domain) F’F’ To achieve smoothing, low-pass filtering, we attenuate the higher frequency part of F(u)

G52IIP, School of Computer Science, University of Nottingham 20 Image Transforms Now, come back to the idea of frequency domain processing F’( ) Input Image, I(x,y) (spatial domain) Mathematical Transformation F( ) Transformed Image F(u, v) Processing F(u,v) Inverse Transformation F ’ ( ) Output Image, I’(x,y) (spatial domain) F’F’ To achieve sharpening, low-pass filtering, we attenuate the lower frequency part of F(u)

G52IIP, School of Computer Science, University of Nottingham 21 Image Transforms Band limiting signals – A signal’s Fourier transform equal to zero above a certain finite frequency All images (natural signals) are band limiting signals F(u)

G52IIP, School of Computer Science, University of Nottingham 22 Frequency Domain Processing In practice Matlab f2=fft2(im); f2=fftshift(f2); fabs2=FH_abs(f2); (calculate magnitude, FFT are complex number) imshow(fabs2) im

G52IIP, School of Computer Science, University of Nottingham 23 Frequency Domain Processing Another example

G52IIP, School of Computer Science, University of Nottingham 24 Convolution and Spatial Filtering Spatial filtering is the convolution between the input image and the filtering mask f(x,y) w(x,y) f(x,y)*w(x,y)

G52IIP, School of Computer Science, University of Nottingham 25 Frequency Domain Processing The foundation of frequency domain techniques is the convolution theorem

G52IIP, School of Computer Science, University of Nottingham 26 Frequency Domain Processing H(u, v) is called the transfer function

G52IIP, School of Computer Science, University of Nottingham 27 Frequency Domain Processing Typical lowpass filters and their transfer functions

G52IIP, School of Computer Science, University of Nottingham 28 Frequency Domain Processing Typical lowpass filters and their transfer functions

G52IIP, School of Computer Science, University of Nottingham 29 Frequency Domain Processing Example

G52IIP, School of Computer Science, University of Nottingham 30 Frequency Domain Processing Example

G52IIP, School of Computer Science, University of Nottingham 31 Frequency Domain Processing Typical lowpass filters and their transfer functions

G52IIP, School of Computer Science, University of Nottingham 32 Frequency Domain Processing Example

G52IIP, School of Computer Science, University of Nottingham 33 Frequency Domain Processing Typical lowpass filters and their transfer functions

G52IIP, School of Computer Science, University of Nottingham 34 Frequency Domain Processing Example

G52IIP, School of Computer Science, University of Nottingham 35 Frequency Domain Processing Example

G52IIP, School of Computer Science, University of Nottingham 36 Frequency Domain Processing Example

G52IIP, School of Computer Science, University of Nottingham 37 Frequency Domain Processing Typical highpass filters and their transfer functions

G52IIP, School of Computer Science, University of Nottingham 38 Frequency Domain Processing Typical highpass filters and their transfer functions

G52IIP, School of Computer Science, University of Nottingham 39 Frequency Domain Processing Typical highpass filters and their transfer functions

G52IIP, School of Computer Science, University of Nottingham 40 Frequency Domain Processing Examples

G52IIP, School of Computer Science, University of Nottingham 41 Frequency Domain Processing Examples

G52IIP, School of Computer Science, University of Nottingham 42 Frequency Domain Processing Examples

G52IIP, School of Computer Science, University of Nottingham 43 Frequency Domain Processing More examples

G52IIP, School of Computer Science, University of Nottingham 44 Frequency Domain Processing Examples

G52IIP, School of Computer Science, University of Nottingham 45 Frequency Domain Processing Examples

G52IIP, School of Computer Science, University of Nottingham 46 Frequency Domain Processing Spatial vs frequency domain

G52IIP, School of Computer Science, University of Nottingham 47 Frequency Domain Processing Spatial vs frequency domain

G52IIP, School of Computer Science, University of Nottingham 48 Frequency Domain Processing Examples