
200
Two-Dimensional Discrete Fourier Transform
With 0 = 0,
cos(^(ln
1
+
mn
2
))<^^-(d(ki-l,k
2
-m)
+
6{k
1
-(N-l),k
2
-(N-m))).
With0 = -f,
sin(^(Zm+mn
2
))
<S>
^-(-jS(k
1
-l,k
2
-m)+j6{k
1
-{N-l),k
2
-{N-m))).
Example 10.2 Consider the 64x64 sinusoidal surface shown in Fig. 10.2(a)
and its DFT shown in Fig. 10.2(b). The coefficients X(0,1) = O-j'2048 and
X(0,63) = 0+J2048 represent a stack, along the ni direction, of 64 shifted
(with zero shift) sine waveforms with frequency index one and amplitude
one,
resulting in the sinusoidal surface, x{n\,n
2
) = sin(|yn
2
). An alternate
view of a sinusoidal surface is of a plane wave with frequency \f{u\ + w
2
)
in the direction 6 = tan
-1
^ to the n\ axis. The sinusoidal surface shown
in Fig. 10.2(a) is a plane wave with frequency |f radians per sample in the
direction 90 degrees to the n\ axis.
Consider the sinusoidal surface shown in Fig. 10.2(c) and its DFT shown
in Fig. 10.2(d). The coefficients X(l,l) = 0 - j'2048 and X(63,63) =
0 + j'2048 represent a stack, in the n
2
direction, of 64 phase shifted sine
waves, sin(|jni), (with |fn
2
radians shift) with frequency index one and
amplitude one, resulting in the sinusoidal surface, x(ni,n
2
) = sin(|jni +
|j7i2).
This sinusoidal surface is a plane wave with frequency
2
^
2
radians
per sample in the direction 45 degrees to the n\ axis.
Consider the sinusoidal surface shown in Fig. 10.2(e) and its DFT shown
in Fig. 10.2(f). The coefficients X(2,1) = 1448.2-J1448.2 and X(62,63) =
1448.2 + j'1448.2 represent a stack, in the n
2
direction, of 64 phase shifted
cosine waves, cos(||2ni), (with (§fn
2
—
j) radians shift) with frequency in-
dex two and amplitude one, resulting in the sinusoidal surface, x(ni,n
2
) =
cos(|^2ni + |f
n
2
— \). This sinusoidal surface is a plane wave with fre-
quency 2sxl radians per sample in the direction tan
-1
\ = 26.565 degrees
to the ni axis. I
10.3 Computation of the 2-D DFT
The direct computation of Eq. (10.1), obviously, has the complexity of
0(AT
4
).
The basis functions, ar
fcllfc2
(ni,n
2
) = e^
(
*
ini+
*
2n2)
,ni,n
2
, h, k
2
=
0,1,...,
N — 1, are separable. Therefore, the 2-DFT can be obtained
by computing the 1-D DFT of each row of the image followed by the com-
putation of the 1-D DFT of each column of the resulting data and vice