For constructing 1D Fourier series, the main idea was that for a given period T and fundamental frequency ω0=T2π, the complex exponentials form an orthogonal basis.
ϕk(t):=ejkω0t⟹⟨ϕk1,ϕk2⟩=∫T[e−jk1ω0t]⋅[ejk2ω0t]dt={T0 if k1=k2 otherwise.
This generalizes readily to 2D Fourier series. We have a signal f:R×R→C with periods Tx and Ty along the x and y directions, with directional fundamental frequencies ω0,x=Tx2π and ω0,y=Ty2π. Then our orthogonal basis is:
ϕkx,ky(x,y):=ejkxω0,xx⋅ejkyω0,yy⟹==⟨ϕkx,1,ky,1,ϕkx,2,ky,2⟩∫Tx∫Ty[e−jkx,1ω0,xx⋅e−jky,1ω0,yy]⋅[ejkx,2ω0,xx⋅ejky,2ω0,yy]dydx{TxTy0 if (kx,1,ky,1)=(kx,2,ky,2). otherwise.
By corollary, 2D Fourier series work like so:
Theorem. (2D CTFS) Given a periodic signal f:R×R→C, its Fourier series works like so.
Now define the CTFT to be F(ωx,ωy):=lim(Tx,Ty)→(∞,∞)TxTy⋅FTx,Ty[kx,ky], where ωx=kxω0,x and ωy=kyω0,y are the reparametrization. First, check this matches the theorem statement.
Remark. The 2D DFT is, up to a factor of NxNy1, the evaluation of the polynomial p(zx,zy):=∑nx=0Nx−1∑ny=0Ny−1f[nx,ny]zxnxzyny as zx and zy span the Nxth and Nyth roots of unity, respectively. And naturally, 2D circular convolution is just multivariate polynomial multiplication in the ring C[zx,zy]/(zxNx−1,zyNy−1), and so on…
§ Recitation and Lecture: 2D DFT Algebraic Properties
Theorem. (2D Unit-Sample DFT) The DFT of f[nx,ny]:=δ[nx]δ[ny] is the constant function F[kx,ky]=NxNy1.
Proof: Compare with the 1D case discussed in Lecture 7. Proof by plain computation. ■
Here's a useful trick for handling higher-dimension DFTs.
Theorem. (2D DFT Independence) To compute the size-(Nx,Ny) DFT of f[nx,ny], it is equivalent to do the following.
First, replace every row with the size-Nx DFT of that row.
Afterwards, replace every column with the size-Ny DFT of that column.
Proof: Move the terms around between the double-summation.
Alternatively, adopt the polynomial interpretation: a multivariate polynomial in (zx,zy) is just a single-variable polynomial in zy, where the coefficients are themselves polynomials in zx. ■
Here's a visual of how the trick above can be used to calculate the DFT of f[nx,ny]=δ[nx]δ[ny].
You can check for yourself the following facts, too:
The DFT of the constant signal f[nx,ny]:=1 is F[kx,ky]=δ[kx]δ[ky].
The DFT of the vertical-line signal f[nx,ny]:=δ[nx] is F[kx,ky]=Nx1δ[ky] (a horizontal line).
The DFT of the horizontal-line signal f[nx,ny]:=δ[ny] is F[kx,ky]=Ny1δ[kx] (a vertical line).
The DFT of an impulse train is another, perpendicular impulse train.
Here's one more trick: translation affects DFTs via phase shift. (Again, recall “Time Delay” from Lecture 7.)
Theorem. (2D DFT Translation) Given that DFT(f[nx,ny])=F[kx,ky], we have:
See below for the DFT of a translation of a unit-sample signal. Only the phase changes.
§ Lecture: 2D DFT Visual Properties
The key idea to keep in mind is the following:
Idea. Lines in the space domain manifest as perpendicular lines in the frequency domain.
Here's an example of the DFT of a triangle. Notice how the DFT has three linear features, each perpendicular to a side of the triangle in the original signal.
This photo of trees has strong vertical-line features, so its DFT has a strong horizontal line.
These are the DFTs of some digits.
Here's an interesting one: the DFT of a fingerprint gives this bright ring of radius ≈40 around a bright dot at the center.
The reason why is that a fingerprint locally is just a collection of evenly-spaced parallel lines. And a collection of evenly-spaced parallel lines is exactly what a 2D cosine wave looks like.
But the DFT of a 2D cosine wave is two dots, antipodal to one another on a circle of radius equal to the frequency of the cosine wave. Since a fingerprint consists of evenly-spaced parallel lines in all directions, those pairs of dots get rotated around this circle in all directions, forming the bright ring of radius ≈40.
In fact, a common preprocessing step in fingerprint analysis is to bandpass-filter around the ridge frequency—often implemented by keeping only that ring in the DFT before taking the inverse transform, yielding a high-contrast image of the ridges.