CS654: Digital Image Analysis

Slides:



Advertisements
Similar presentations
DFT properties Note: it is important to ensure that the DFTs are the same length If x1(n) and x2(n) have different lengths, the shorter sequence must be.
Advertisements

Chapter 5 The Fourier Transform. Basic Idea We covered the Fourier Transform which to represent periodic signals We assumed periodic continuous signals.
Fourier Transform (Chapter 4)
Basis beeldverwerking (8D040) dr. Andrea Fuster Prof.dr. Bart ter Haar Romeny dr. Anna Vilanova Prof.dr.ir. Marcel Breeuwer The Fourier Transform II.
Chapter Four Image Enhancement in the Frequency Domain.
Chapter 4 Image Enhancement in the Frequency Domain.
CHAPTER 4 Image Enhancement in Frequency Domain
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.
Autumn Analog and Digital Communications Autumn
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.
Signals and Systems Jamshid Shanbehzadeh.
Image Processing Fourier Transform 1D Efficient Data Representation Discrete Fourier Transform - 1D Continuous Fourier Transform - 1D Examples.
The Discrete Fourier Transform. The Fourier Transform “The Fourier transform is a mathematical operation with many applications in physics and engineering.
Digital Image Processing CCS331 Image Interpolation 1.
CS654: Digital Image Analysis Lecture 15: Image Transforms with Real Basis Functions.
ECE 8443 – Pattern Recognition ECE 3163 – Signals and Systems Objectives: Introduction to the IEEE Derivation of the DFT Relationship to DTFT DFT of Truncated.
Image Processing © 2002 R. C. Gonzalez & R. E. Woods Lecture 4 Image Enhancement in the Frequency Domain Lecture 4 Image Enhancement.
CS654: Digital Image Analysis Lecture 12: Separable Transforms.
CS654: Digital Image Analysis
Chapter 7: The Fourier Transform 7.1 Introduction
Signal Processing and Representation Theory Lecture 4.
Part I: Image Transforms DIGITAL IMAGE PROCESSING.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
EE104: Lecture 5 Outline Review of Last Lecture Introduction to Fourier Transforms Fourier Transform from Fourier Series Fourier Transform Pair and Signal.
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.
CS654: Digital Image Analysis Lecture 6: Basic Transformations.
Spatial Frequencies Spatial Frequencies. Why are Spatial Frequencies important? Efficient data representation Provides a means for modeling and removing.
Fourier Analysis of Discrete Time Signals
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.
Math Review Towards Fourier Transform
Frequency Domain Processing Lecture: 3. In image processing, linear systems are at the heart of many filtering operations, and they provide the basis.
CS654: Digital Image Analysis
LESSON 5-1 I can draw reflected images. I can recognize and draw lines of symmetry.
CS654: Digital Image Analysis Lecture 13: Discrete Fourier Transformation.
Fourier Transform.
Lecture 5: Introduction to 3D
Fourier and Wavelet Transformations Michael J. Watts
Objects localization and recognition
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: Derivation of the DFT Relationship to DTFT DFT of Truncated Signals.
CS654: Digital Image Analysis Lecture 22: Image Restoration.
CS654: Digital Image Analysis Lecture 11: Image Transforms.
Digital Image Processing Lecture 9: Filtering in Frequency Domain Prof. Charlene Tsai.
BYST Xform-1 DIP - WS2002: Fourier Transform Digital Image Processing Bundit Thipakorn, Ph.D. Computer Engineering Department Fourier Transform and Image.
ENEE 322: Continuous-Time Fourier Transform (Chapter 4)
The Frequency Domain Digital Image Processing – Chapter 8.
Lecture 17 Outline: DFT Properties and Circular Convolution
Digital Image Processing Lecture 7: Image Enhancement in Frequency Domain-I Naveed Ejaz.
The Fourier Transform.
Digital Image Processing Lecture 8: Image Enhancement in Frequency Domain II Naveed Ejaz.
Husheng Li, UTK-EECS, Fall The specification of filter is usually given by the tolerance scheme.  Discrete Fourier Transform (DFT) has both discrete.
EE104: Lecture 6 Outline Announcements: HW 1 due today, HW 2 posted Review of Last Lecture Additional comments on Fourier transforms Review of time window.
Fourier Transform (Chapter 4) CS474/674 – Prof. Bebis.
Digital Image Processing Lecture 8: Fourier Transform Prof. Charlene Tsai.
Jean Baptiste Joseph Fourier
Lecture 1.26 Spectral analysis of periodic and non-periodic signals.
Image Enhancement in the
Fourier and Wavelet Transformations
EE 638: Principles of Digital Color Imaging Systems
4.1 DFT In practice the Fourier components of data are obtained by digital computation rather than by analog processing. The analog values have to be.
Digital Image Processing
Lecture 17 DFT: Discrete Fourier Transform
Digital Image Procesing Unitary Transforms Discrete Fourier Trasform (DFT) in Image Processing DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL.
Signals & Systems (CNET - 221) Chapter-4
Digital Image Procesing Unitary Transforms Discrete Fourier Trasform (DFT) in Image Processing DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL.
Lecture 4 Image Enhancement in Frequency Domain
Presentation transcript:

CS654: Digital Image Analysis Lecture 14: Properties of DFT

Recap of Lecture 13 Introduction to DFT 1D and 2D DFT - Unitary Separability of DFT Computational complexity Improvement in computational complexity

Outline of Lecture 14 Properties of DFT Translation Periodicity Conjugate symmetry Distributivity Scaling Average value Convolution

Numerical example 𝐴= 1 2 1 1 1 1 1 −𝑗 −1 𝑗 1 −1 1 −1 1 𝑗 −1 −𝑗 A 4×4 DFT transformation matrix can be written as 𝐴= 1 2 1 1 1 1 1 −𝑗 −1 𝑗 1 −1 1 −1 1 𝑗 −1 −𝑗 𝑢= 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 𝑽=𝑨𝑼𝑨 𝑣= 1 −1 1 −1 0 0 0 0 0 0 0 0 0 0 0 0

Translation property of DFT Let, the input image 𝑢 𝑚,𝑛 is translated to a location 𝑢(𝑚 − 𝑚 0 ,𝑛− 𝑛 0 ) 𝑣 𝑘,𝑙 = 1 𝑁 𝑚=0 𝑁−1 𝑛=0 𝑁−1 𝑢 𝑚,𝑛 exp⁡ −𝑗2𝜋(𝑘𝑚+𝑛𝑙) 𝑁 𝑣 𝑡 𝑘,𝑙 = 1 𝑁 𝑚=0 𝑁−1 𝑛=0 𝑁−1 𝑢 𝑚,𝑛 exp⁡ −𝑗2𝜋(𝑘(𝑚− 𝑚 0 )+𝑙(𝑛− 𝑛 0 )) 𝑁 = 1 𝑁 𝑚=0 𝑁−1 𝑛=0 𝑁−1 𝑢 𝑚,𝑛 exp⁡ −𝑗2𝜋(𝑘𝑚+𝑙𝑛) 𝑁 exp⁡ 𝑗2𝜋(𝑘 𝑚 0 + 𝑛 0 𝑙) 𝑁 𝑣 𝑡 𝑘,𝑙 =𝑣(𝑘,𝑙)exp⁡ 𝑗2𝜋(𝑘 𝑚 0 + 𝑛 0 𝑙) 𝑁

Translation property 𝑣 𝑡 𝑘,𝑙 =𝑣(𝑘,𝑙)exp⁡ 𝑗2𝜋(𝑘 𝑚 0 + 𝑛 0 𝑙) 𝑁 DFT of translated image 𝑣 𝑘− 𝑘 0 ,𝑙− 𝑙 0 =𝑢(𝑚,𝑛)exp⁡ 𝑗2𝜋( 𝑘 0 𝑚+ 𝑙 0 𝑛) 𝑁 Inverse DFT 𝑢(𝑚,𝑛)exp⁡ 𝑗2𝜋 𝑘 0 𝑚+ 𝑙 0 𝑛 𝑁 ↔𝑣(𝑘− 𝑘 0 ,𝑙− 𝑙 0 ) 𝑢(𝑚− 𝑚 0 ,𝑛− 𝑛 0 )↔𝑣(𝑘,𝑙)exp⁡ 𝑗2𝜋(𝑘 𝑚 0 + 𝑛 0 𝑙) 𝑁

Periodicity 𝑣 𝑘,𝑙 =𝑣 𝑚+𝑁,𝑛 =𝑣 𝑚,𝑛+𝑁 =𝑣(𝑚+𝑛,𝑛+𝑁) ∀𝑘,𝑙 𝑣 𝑘,𝑙 = 1 𝑁 𝑚=0 𝑁−1 𝑛=0 𝑁−1 𝑢 𝑚,𝑛 exp⁡ −𝑗2𝜋(𝑘𝑚+𝑛𝑙) 𝑁 𝑣 𝑘+𝑁,𝑙+𝑁 = 1 𝑁 𝑚=0 𝑁−1 𝑛=0 𝑁−1 𝑢 𝑚,𝑛 exp⁡ −𝑗2𝜋 𝑁 (𝑘+𝑁)𝑚+ 𝑙+𝑁 𝑛 = 1 𝑁 𝑚=0 𝑁−1 𝑛=0 𝑁−1 𝑢 𝑚,𝑛 exp⁡ −𝑗2𝜋(𝑘𝑚+𝑛𝑙) 𝑁 𝑒𝑥𝑝 −𝑗2𝜋(𝑥+𝑦)

Conjugate symmetry 𝑣 𝑁 2 ±𝑘, 𝑁 2 ±𝑙 = 𝑣 ∗ 𝑁 2 ∓𝑘, 𝑁 2 ∓𝑙 0≤𝑘,𝑙≤ 𝑁 2 −1 When 𝑢(𝑚,𝑛) is real 𝑣 𝑁 2 ±𝑘, 𝑁 2 ±𝑙 = 𝑣 ∗ 𝑁 2 ∓𝑘, 𝑁 2 ∓𝑙 0≤𝑘,𝑙≤ 𝑁 2 −1 𝑘=0 𝑁 𝑁 2 1-D Example 𝑁 2 , 𝑁 2 2-D Example

Conjugate symmetry 𝑣 𝑘,𝑙 = 1 𝑁 𝑚=0 𝑁−1 𝑛=0 𝑁−1 𝑢 𝑚,𝑛 exp⁡ −𝑗2𝜋(𝑘𝑚+𝑛𝑙) 𝑁 𝑘= 𝑁 2 ±𝑘,𝑙= 𝑁 2 ±𝑙 𝑣 𝑘,𝑙 = 1 𝑁 𝑚=0 𝑁−1 𝑛=0 𝑁−1 𝑢 𝑚,𝑛 exp⁡ −𝑗2𝜋 𝑁 2 +𝑘 𝑚+ 𝑁 2 +𝑙 𝑛 𝑁

Distributivity Scaling DFT of sum of two signals is equal to the sum of their individual summations 𝐷𝐹𝑇 𝑢 1 𝑚,𝑛 + 𝑢 2 (𝑚,𝑛) =𝐷𝐹𝑇 𝑢 1 (𝑚,𝑛) +𝐷𝐹𝑇 𝑢 2 (𝑚,𝑛) Scaling 𝑢(𝑎𝑚,𝑏𝑛)↔ 1 |𝑎𝑏| 𝑣 𝑘 𝑎 , 𝑙 𝑏 𝑎,𝑏 are scaling parameters

Average value 𝑢 𝑚,𝑛 = 1 𝑁 2 𝑚=0 𝑁−1 𝑛=0 𝑁−1 𝑢(𝑚,𝑛) 𝑢 𝑚,𝑛 = 1 𝑁 2 𝑚=0 𝑁−1 𝑛=0 𝑁−1 𝑢(𝑚,𝑛) Average value of image 𝑣 𝑘,𝑙 = 1 𝑁 𝑚=0 𝑁−1 𝑛=0 𝑁−1 𝑢 𝑚,𝑛 exp⁡ −𝑗2𝜋(𝑘𝑚+𝑛𝑙) 𝑁 For 𝑘=0,𝑙=0 𝑣 0,0 = 1 𝑁 𝑚=0 𝑁−1 𝑛=0 𝑁−1 𝑢 𝑚,𝑛 =𝑁 𝑢 𝑚,𝑛 DC Component of an image

Rotation 𝑢 𝑟,𝜃 ↔𝑣(𝜔,𝜙) 𝑢 𝑟,𝜃+ 𝜃 0 ↔𝑣(𝜔,𝜙+ 𝜃 0 ) 𝑚=𝑟𝑐𝑜𝑠θ 𝑛=𝑟𝑠𝑖𝑛θ Polar coordinate in source domain Instead of working in the Cartesian coordinate, we are working in the polar coordinate 𝑘=𝜔𝑐𝑜𝑠𝜙 𝑛=𝜔𝑠𝑖𝑛𝜙 Polar coordinate in target domain If we have 𝑢 𝑟,𝜃 ↔𝑣(𝜔,𝜙) 𝑢 𝑟,𝜃+ 𝜃 0 ↔𝑣(𝜔,𝜙+ 𝜃 0 ) Then,

Convolution Let there be two images of different size 𝑢 2 𝑚,𝑛 = (0,0) (𝑁−1) ≠𝟎 (𝑀−1) 𝑢 1 (𝑚,𝑛) ℎ(𝑚,𝑛) 𝑚 𝑛 𝒉,𝒎 =𝟎 𝑢 2 𝑚,𝑛 = 𝑚 ′ =0 𝑁−1 𝑛 ′ =0 𝑁−1 ℎ 𝑚− 𝑚 ′ ,𝑛− 𝑛 ′ 𝑐 𝑢 1 𝑚 ′ , 𝑛 ′ ; 0≤𝑚,𝑛≤𝑁−1 ℎ 𝑚,𝑛 𝑐 =ℎ(𝑚 𝑚𝑜𝑑 𝑁,𝑛 𝑚𝑜𝑑 𝑁)

Circular Symmetry 𝒉 𝒎− 𝒎 ′ ,𝒏− 𝒏 ′ 𝒄 𝑢 2 𝑚,𝑛 = (0,0) (𝑁−1) ≠𝟎 (𝑀−1) 𝑢 1 (𝑚,𝑛) ℎ(𝑚,𝑛) 𝑚 𝑛 𝒉,𝒎 =𝟎 𝒉 𝒎− 𝒎 ′ ,𝒏− 𝒏 ′ 𝒄 𝑚′ 𝑛′ 𝑢 2 𝑚,𝑛 = 𝑚 ′ =0 𝑁−1 𝑛 ′ =0 𝑁−1 ℎ 𝑚− 𝑚 ′ ,𝑛− 𝑛 ′ 𝑐 𝑢 1 𝑚 ′ , 𝑛 ′ ; 0≤𝑚,𝑛≤𝑁−1 𝑢 1 (𝑚′,𝑛′) Computational complexity??

2D DFT for h in frequency domain 𝐷𝐹𝑇 ℎ 𝑚− 𝑚 ′ ,𝑛− 𝑛 ′ 𝑐 = 𝑚=0 𝑁−1 𝑛=0 𝑁−1 ℎ 𝑚− 𝑚 ′ ,𝑛− 𝑛 ′ 𝑐 𝑊 𝑁 𝑚𝑘+𝑛𝑙 = 𝑊 𝑁 𝑚 ′ 𝑘+ 𝑛 ′ 𝑙 𝑚=0 𝑁−1 𝑛=0 𝑁−1 ℎ 𝑚− 𝑚 ′ ,𝑛− 𝑛 ′ 𝑐 𝑊 𝑁 (𝑚− 𝑚 ′ )𝑘+(𝑛− 𝑛 ′ )𝑙 Let, 𝑝=𝑚−𝑚′ and 𝑞=𝑛−𝑛′ = 𝑊 𝑁 𝑚 ′ 𝑘+ 𝑛 ′ 𝑙 𝑝=−𝑚′ 𝑁−1−𝑚′ 𝑞=−𝑛′ 𝑁−1−𝑛′ ℎ 𝑝,𝑞 𝑐 𝑊 𝑁 𝑝𝑘+𝑞𝑙 = 𝑊 𝑁 𝑚 ′ 𝑘+ 𝑛 ′ 𝑙 𝑝=0 𝑁−1 𝑞=0 𝑁−1 ℎ 𝑝,𝑞 𝑐 𝑊 𝑁 𝑝𝑘+𝑞𝑙

DFT of Convolution Function 𝐷𝐹𝑇 𝑢 2 𝑚,𝑛 𝑁 =𝐷𝐹𝑇 ℎ 𝑚,𝑛 𝑁 𝐷𝐹𝑇{ 𝑢 1 (𝑚,𝑛)} DFT of a two dimensional circular convolution of two arrays is the product of their DFTs

Thank you Next Lecture: Hadamard Transform