Discrete Fourier Transform (DFT) in 2D Signals - Prof. Alregib, Assignments of Digital Image Processing

A comprehensive study on the discrete fourier transform (dft) for 2d signals. It covers the definition of dft, its properties, linear and circular convolution, computing dft for real images, dft in matrix form, and plotting dft. The document also explains the relationship between dft and the discrete time fourier transform (dtft) and the inverse discrete fourier transform (idtft).

Typology: Assignments

2018/2019

Uploaded on 03/27/2024

keshav-ece
keshav-ece ๐Ÿ‡บ๐Ÿ‡ธ

1 document

1 / 62

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
ECE 6258 | ECE 4803 | BMED 8813
Digital Image Processing
Fall 2023
DFT
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e

Partial preview of the text

Download Discrete Fourier Transform (DFT) in 2D Signals - Prof. Alregib and more Assignments Digital Image Processing in PDF only on Docsity!

ECE 6258 | ECE 4803 | BMED 8813

Digital Image Processing

Fall 2023

DFT

Image Transform: Outline

  • DFT (Discrete Fourier Transform)
  • DCT (Discrete Cosine Transform)
  • Unitary Transform
  • KLT (Karhunen-Loรจve Transform)
  • Directional Transforms
  • Autoencoders

Transforms are Everywhere

  • e.g. Image Coding

Introduction

  • We studied the Discrete Time Fourier Transform (DTFT), ๐น(๐œ‡, ๐œˆ) but in

practice computing the Fourier Transform is not possible

  • Itโ€™s still continuous in frequency domain!!
  • Computers are digital!
  • Thus, the DTFT is only an analytical tool
  • In this part of the course, we study DFT
  • DTFT: discrete time & continuous frequency
  • DFT: discrete time & discrete frequency

Review:

DTFT pair

๐น ๐œ‡, ๐œˆ = เท

๐‘š=โˆ’โˆž

โˆž

เท

๐‘›=โˆ’โˆž

โˆž

๐‘“ ๐‘š, ๐‘› ๐‘’

โˆ’๐‘—2๐œ‹(๐‘š๐œ‡+๐‘›๐œˆ)

๐‘“ ๐‘š, ๐‘› = เถฑ

โˆ’

1

2

1

2

เถฑ

โˆ’

1

2

1

2

๐น(๐œ‡, ๐œˆ) ๐‘’

๐‘—2๐œ‹(๐‘š๐œ‡+๐‘›๐œˆ) ๐‘‘๐œ‡๐‘‘๐œˆ

DFT Outline

  • Definition of DFT
  • Properties of DFT
  • Linear Convolution vs. Circular Convolution
  • Computing DFT for real images
  • DFT in matrix form
  • Plotting DFT

2 - D Discrete Fourier Transform

  • The DFT is obtained by sampling the DTFT (on a rectangular lattice)
    • continuous frequency ๏ƒ  discrete frequency
  • The DFT transfers the image into the frequency domain and then

performs various operations in that domain

  • The DFT is energy compactor
  • It helps with analyzing various processes
  • It is derived for a periodic sequence

Discrete Fourier Series (DFS)

  • DFS: discrete time & discrete frequency ๏ƒจ We can compute DFS
  • The 2 - D DFS gives us a way to write

๐‘“ ๐‘š, ๐‘› as a superposition of

harmonically related complex sinusoids:

๐‘˜= 0

๐‘€โˆ’ 1

๐‘™= 1

๐‘โˆ’ 1

๐น ๐‘˜, ๐‘™ exp ๐‘—

Fourier Series Coefficient

Periodic in both k , l and m , n

Note: we donโ€™t limit the range of m & n

Discrete Fourier Series (DFS)

  • The coefficients,

๐น ๐‘˜, ๐‘™ , can be computed from

๐‘“[๐‘š, ๐‘›] using:

๐‘š= 0

๐‘€โˆ’ 1

๐‘›= 0

๐‘โˆ’ 1

๐‘“ ๐‘š, ๐‘› exp โˆ’๐‘—

Note: we donโ€™t limit the range of k & l

Definition of DFT

  • Recall:

๐‘š= 0

๐‘€โˆ’ 1

๐‘›= 0

๐‘โˆ’ 1

โˆ’๐‘—2๐œ‹(๐œ‡๐‘š+๐œˆ๐‘›)

thus, we can write:

  • So far we know:
    • DFT = finite region version of DFS
      • The 2-D DFT is a Fourier Series representation for the periodic extension of ๐‘“[๐‘š, ๐‘›]
    • ๐น[๐‘˜, ๐‘™] = ๐น

๐‘˜

๐‘€

,

๐‘™

๐‘

  • The 2-D DFT consists of samples of the Fourier Transform

๐œ‡ โ†’

๐‘˜

๐‘€

, ๐œˆ โ†’

๐‘™

๐‘

DFT Outline

  • Definition of DFT
  • Properties of DFT
  • Linear Convolution vs. Circular Convolution
  • Computing DFT for real images
  • DFT in matrix form
  • Plotting DFT

Linearity

  • When ๐‘“[๐‘š, ๐‘›] and ๐‘”[๐‘š, ๐‘›] have the support on the same ๐‘€ ร— ๐‘

region

  • Note: If the two images donโ€™t have support on the same region, we

perform zero padding

  • Circular Shift

0 ๐‘€

0 ๐‘

๐‘€

๐‘š 0

๐‘˜

๐‘

๐‘› 0

๐‘™

๐น[๐‘˜, ๐‘™]

  • Example๏ผš

Circular Shift

(( )) mod ( *int( / )) N

q ๏€ฝ q N ๏€ฝ q ๏€ญ N q N

๐‘Š ๐‘

= ๐‘’

โˆ’๐‘—

2๐œ‹

๐‘

Symmetry

  • Similarly, if we have a sequence that has Hermitian symmetric and

asymmetric portions, then we can find the following:

๐‘ 

โˆ—

๐‘€ โˆ’ ๐‘š

๐‘€

๐‘

๐‘Ž

โˆ—

๐‘€ โˆ’ ๐‘š

๐‘€

๐‘

Symmetry

  • Combining all four equation lead us to:

๐‘ 

โˆ—

[๐‘˜, ๐‘™] = Re ๐น[๐‘˜, ๐‘™]

๐‘Ž

โˆ—

[๐‘˜, ๐‘™] = ๐‘— Im ๐น[๐‘˜, ๐‘™]

OR

Hermitian Symmetric Portion โ†” Real Part of DFT

Hermitian Asymmetric Portion โ†” ๐‘— ร— imaginary part of DFT