0% found this document useful (0 votes)
219 views

DFT Sample Exam Problems Solutions

The document contains 5 sample exam problems about properties of the discrete Fourier transform (DFT) of images: 1. It asks about symmetry properties of the DFT and conditions for the real and imaginary parts to be zero. 2. It asks to identify properties of the DFT for different images based on symmetry. 3. It asks to plot an image, calculate its DFT, and compare to the original image. 4. It asks to identify the DFT magnitude plot corresponding to a given image. 5. It asks about the energy of the error between an original image and one reconstructed after discarding small DFT coefficients.

Uploaded by

Anirban Neogi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
219 views

DFT Sample Exam Problems Solutions

The document contains 5 sample exam problems about properties of the discrete Fourier transform (DFT) of images: 1. It asks about symmetry properties of the DFT and conditions for the real and imaginary parts to be zero. 2. It asks to identify properties of the DFT for different images based on symmetry. 3. It asks to plot an image, calculate its DFT, and compare to the original image. 4. It asks to identify the DFT magnitude plot corresponding to a given image. 5. It asks about the energy of the error between an original image and one reconstructed after discarding small DFT coefficients.

Uploaded by

Anirban Neogi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

DFT Sample Exam Problems with Solutions

1. Consider an M  M -pixel gray level real image f ( x, y) which is zero outside −𝑀 ≤ 𝑥 ≤ 𝑀 and
−𝑀 ≤ 𝑦 ≤ 𝑀. Show that:
(i) 𝐹(−𝑢, −𝑣) = 𝐹 ∗ (𝑢, 𝑣) with 𝐹(𝑢, 𝑣) the two-dimensional Discrete Fourier Transform of
𝑓(𝑥, 𝑦).
(ii) In order for the image to have the imaginary part of its two-dimensional Discrete Fourier
Transform equal to zero, the image must be symmetric around the origin.
(iii) In order for the image to have the real part of its two-dimensional Discrete Fourier
Transform equal to zero, the image must be antisymmetric around the origin.

Solution
2. Consider the images shown below (A to H). Using knowledge of properties of the two-dimensional
Discrete Fourier Transform symmetry and not exact calculation of it, list which image(s) will have
a two-dimensional Discrete Fourier Transform 𝐹(𝑢, 𝑣) with the following properties:
(i) The imaginary part of 𝐹(𝑢, 𝑣) is zero for all 𝑢, 𝑣.
(ii) 𝐹(0,0) = 0
(iii) 𝐹(𝑢, 𝑣) has circular symmetry.
(iv) The real part of 𝐹(𝑢, 𝑣) is zero for all 𝑢, 𝑣.

Solution
3. Consider an M  M -pixel gray level image f ( x, y) which is zero outside 0  x  M − 1 and
0  y  M − 1 . The image intensity is given by the following relationship
c, x = x1 , x = x 2 , 0  y  M − 1
f ( x, y ) = 
0, otherwise
where c is a constant value between 0 and 255 and x1 , x2 x1  x2 are constant values between 0
and M − 1 .
(i) Plot the image intensity.
(ii) Find the M  M -point Discrete Fourier Transform (DFT) of f ( x, y) .
(iii) Compare the original image and its Fourier Transform.

N −1 1− aN
Hint: The following result holds:  a x = , a 1.
k =0 1− a

Solution

(i) Plot the image intensity.


x1 x2
x

y
(ii) For an image which contains only a single non-zero edge at x = x1 , the M  N -point
Discrete Fourier Transform (DFT) of f ( x, y) is given as follows:
1 M −1 N −1 − j 2 ( ux / M + vy / N ) 1 N −1 − j 2 ( ux1 / M + vy / N )
F (u , v) =   f ( x, y )e =  f ( x1 , y )e
MN x =0 y =0 MN y =0
1 N −1 1 1 − (e − j 2vy / N ) N
= ce − j 2ux1 / M  e − j 2vy / N = ce − j 2ux1 / M
MN y =0 MN 1 − e − j 2vy / N
1 1 − e − j 2vy
= ce − j 2ux1 / M
MN 1 − e − j 2vy / N
 1 − j 2ux1 / M
 ce , v=0
F (u, v) =  M
0, otherwise
For the image with 2 non-zero edges
1
 c(e − j 2ux1 / M + e − j 2ux2 / M ), v = 0
F (u, v) =  M
0, otherwise

(iii) As seen a set of parallel straight lines in space implies a straight line perpendicular to the
original one in frequency.

4. Consider the image shown in Figure 1.1(a) below. Two plots of magnitude of Two-Dimensional
Discrete Fourier Transform (2D DFT) are shown in Figure 1.1(b) and 1.1(c) below. Discuss which
one is the magnitude of the 2D DFT of the image of Figure 1.1(a). Justify your answer.
(a) (b) (c)
Figure 1.1

Solution

Figure (c) is the right answer since it contains edges which are perpendicular to the edges of the
original image. As we know, each image in space produces a perpendicular image in the amplitude
of the DFT.

5. Consider an M  N -pixel image f ( x, y) which is zero outside 0  x  M − 1 and 0  y  N − 1 .


In transform coding, we discard the transform coefficients with small magnitudes and code only
those with large magnitudes. Let F (u, v) denote the M  N -point Discrete Fourier Transform
(DFT) of f ( x, y) . Let G(u, v) denote F (u, v) modified by
F (u, v), when F (u, v) is large
G(u, v) = 
0, otherwise
Let
M −1 N −1 2
  G (u, v) 9
u =0 v =0
M −1 N −1
=
2 10
  F (u, v)
u =0 v =0
We reconstruct an image g ( x, y) by computing the M  N -point inverse DFT of G(u, v) . Express
M −1 N −1 M −1 N −1
  ( f ( x, y) − g ( x, y)) in terms of   f ( x, y) .
2 2

x =0 y =0 x =0 y =0

Solution

The signal f ( x, y) − g ( x, y) is obtained by the Inverse DFT of the signal F (u, v) − G(u, v) .
Therefore, according to Parseval’s theorem the energy of the signal f ( x, y) − g ( x, y) is equal to
the energy of the signal F (u, v) − G(u, v) . The signal F (u, v) − G(u, v) consists of the DFT
samples of F (u, v) which were excluded in forming G(u, v) . Since, G(u, v) captures 0.9 of the
energy of F (u, v) , the signal F (u, v) − G(u, v) will capture 0.1 of the energy of F (u, v) .
Therefore,
M −1 N −1 M −1 N −1
  ( f ( x, y) − g ( x, y)) = 0.1   f ( x, y)
2 2

x =0 y =0 x =0 y =0

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy