DFT With Its Applications
DFT With Its Applications
Contents
1 Introduction 1
4 Exercise 3.7 9
4.1 1-D Digital Signal (Audio) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.2 2-D Digital Signal (Image) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.3 1-D DFT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.4 2-D DFT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1 Introduction
The knowledge of the acquisition and inspection of one-dimensional and two-dimensional
signals, namely audio and images, has been made feasible due to the emergence of a number
of orthogonal transforms. The Fourier transform is a highly significant tool that has been
frequently used for the analysis and processing of one-dimensional and two-dimensional
signals, as well as for gaining insights into their characteristics and origins.
The process of decomposing a one-dimensional or two-dimensional signal, such as audio
or image data, involves utilizing the Fourier transform to identify the constituent sinusoids
with varying periods that represent the temporal or spatial frequencies within the signal.
The magnitudes of these frequencies collectively form the frequency spectrum of the signal.
The inverse Fourier transform incorporates the synthesis of the signal by aggregating its
constituent frequencies.
[email protected]
2 DIGITAL SIGNAL & IMAGE AIUB (Spring 2023-24, Midterm)
Page 2 of 10
2 DIGITAL SIGNAL & IMAGE AIUB (Spring 2023-24, Midterm)
Page 3 of 10
2 DIGITAL SIGNAL & IMAGE AIUB (Spring 2023-24, Midterm)
Page 4 of 10
3 DISCRETE FOURIER TRANSFORM (DFT) AIUB (Spring 2023-24, Midterm)
Example 4. Find the pixel value I(2, 2) of the digital image I(m, n) with spatial intervals
3
xs = 0.1 and ys = 0.1 of the analog image f (x, y) = xy2 , where 0 ≤ x ≤ 2 and 0 ≤ y ≤ 2.
Also, find the pixel size of I(m, n).
Solution: Here, a = 2, b = 2, and xs = ys = 0.1.
Thus, M = xas + 1 = 0.1 2
+ 1 = 20 + 1 = 21 and N = ybs + 1 = 0.1 2
+ 1 = 20 + 1 = 21.
So, the pixel size of I(m, n) is M × N = 21 × 21.
3
Also, I(2, 2) = f (2 × xs , 2 × ys ) = f (2 × 0.1, 2 × 0.1) = f (0.2, 0.2) = 0.2
0.2 = 0.2.
2
Note: The real-time image formulation is not an easy task. For simplicity, in this text, an
analog image is described in terms of a mathematical (algebraic) function.
Page 5 of 10
3 DISCRETE FOURIER TRANSFORM (DFT) AIUB (Spring 2023-24, Midterm)
processing tasks, such as signal reconstruction, noise reduction. The DFT is one of the
sophisticated procedures to transform the spatial and temporal domain signals into the fre-
quency domain.
Page 6 of 10
3 DISCRETE FOURIER TRANSFORM (DFT) AIUB (Spring 2023-24, Midterm)
0 127
Example 7. Transform the digital image I(m, n) = in the spatial domain into
128 255
the frequency domain.
Solution: Here, the pixel size of I(m, n) is M × N = 2 × 2.
Thus, the frequency indices u and v varies from 0 to 1 and 0 to 1, respectively.
And, I(0, 0) = 0, I(0, 1) = 127, I(1, 0) = 128, and I(1, 1) = 255.
Page 7 of 10
3 DISCRETE FOURIER TRANSFORM (DFT) AIUB (Spring 2023-24, Midterm)
P −1 PN −1 −2πi( m0
M +N ) =
n0
I(0, 0) = M1N M 1
P2−1 P2−1 0
m=0 n=0 I(m, n) × e 2×2 m=0 n=0 I(m, n) × e
= 14 1m=0 1n=0 I(m, n) × 1 = 14 1m=0 (I(m, 0) + I(m, 1))
P P P
= I(0,0)+I(0,1)+I(1,0)+I(1,1)
4 = 0+127+128+255
4 = 5104 = 127.5
−1 N −1 −2πi( M + N )
m0 n1
I(0, 1) = M1N M
P P
m=0 n=0 I(m, n) × e
I(m, n) × e−2πi(0+ N ) = 41 1m=0 1n=0 I(m, n) × e−2πi 2
P2−1 P2−1 n n
1
P P
= 2×2 m=0 n=0
1
P1 −2πi 20 −2πi 12
= 4 m=0 I(m, 0) × e + I(m, 1) × e
= 41 1m=0 I(m, 0) × e0 + I(m, 1) × e−πi
P
0 100
Example 8. For a given digital image I(m, n) = , find the frequency domain
200 255
component I(0, 1) of I(m, n).
Solution: Here, the pixel size of I(m, n) is M × N = 2 × 2.
Thus, the frequency indices u and v varies from 0 to 1 and 0 to 1, respectively.
And, I(0, 0) = 0, I(0, 1) = 100, I(1, 0) = 200, and I(1, 1) = 255.
So, the required frequency domain component is
P −1 PN −1 −2πi( m0
M +N )
n1
I(0, 1) = M1N M m=0 n=0 I(m, n) × e
1
P2−1 P2−1 −2πi(0+ n1
2 ) = 1
P1 P1 −2πi n2
= 2×2 m=0 n=0 I(m, n) × e 4 m=0 n=0 I(m, n) × e
= 14 1m=0 1n=0 I(m, n)×e−πin = 14 1m=0 I(m, 0) × e−πi0 + I(m, 1) × e−πi1
P P P
Page 8 of 10
4 EXERCISE 3.7 AIUB (Spring 2023-24, Midterm)
4 Exercise 3.7
4.1 1-D Digital Signal (Audio)
Exercise( 1. Find the digital signal F (n) with 5 samples of the unit step signal
0 for t < 0
f (t) = .
1 for 0 ≤ t ≤ 1
Exercise 2. Find the digital signal F (n) with 11 samples of the wave signal f (t) = sin(2πf0 t),
where f0 = 0.1 and 0 ≤ t ≤ 10.
Exercise(3. Find the third sample of the digital signal F (n) of the unit ramp signal
0 for t < 0
f (t) = with the time interval ts = 0.4 if it exists. Also, find the
t for 0 ≤ t ≤ 2
ninth sample if it exists.
Exercise 4. Find the twelfth sample of the digital signal F (n) of the wave signal f (t) =
cos(2πf0 t), where f0 = 0.2 and 0 ≤ t ≤ 5, with the time interval ts = 0.25 if it exists. Also,
find the ninth sample if it exists.
Exercise 8. For a given digital signal F (n) = {1, 1, 1, 1, 1}, find the third frequency domain
component if it exists. Does the ninth frequency domain component exist?
Page 9 of 10
4 EXERCISE 3.7 AIUB (Spring 2023-24, Midterm)
0 0
Exercise 9. Transform the digital image I(m, n) = in the spatial domain into the
0 0
frequency domain.
255 255
Exercise 10. For a given digital image I(m, n) = , find the frequency domain
255 255
component I(1, 1) of I(m, n).
References
1. Tinku Acharya and Ajoy K Ray, “Image Processing: Principles and Applications”, 1st
Edition, Wiley-Interscience (2005)
Page 10 of 10