next up previous
Next: FD used for shape Up: fd Previous: fd

Fourier Descriptor

Let $x[m]$ and $y[m]$ be the coordinates of the mth pixel on the boundary of a given 2D shape containing $N$ pixels, a complex number can be formed as $z[m]=x[m]+jy[m]$, and the Fourier Descriptor (FD) of this shape is defined as the DFT of $z[m]$:

\begin{displaymath}Z[k]=DFT[z[m]]=\frac{1}{N}\sum_{m=0}^{N-1}z[m]e^{-j2\pi mk/N}\;\;\;(k=0,\cdots,N-1) \end{displaymath}

FD can be used as a representation of 2D closed shapes independent of its location, scaling, rotation and starting point. For example, we could use $M<N$ FDs corresponding to the low frequency components of the boundary to represent the 2D shape. The reconstructed shape based on these FDs approximate the shape without the details (corresponding to the high frequency components susceptible to noise). However, note that since the Fourier transform is a complex transform, the frequency spectrum has negative frequencies as well as positive frequencies, with the DC component in the middle. Therefore the inverse transform with $M<N$ components needs to contain both positive and negative terms:

\begin{displaymath}\hat{z}[m]=\sum_{k=-M/2}^{M/2} Z[k]e^{j2\pi mk/N}\;\;\;(m=0,\cdots,N-1) \end{displaymath}

The following figure shows an image of Gumby:

gumby.gif

The top part of the following image shows the $x$ (horizontal, red-dashed curve) and $y$ (vertical, blue-continuous curve) coordinates of the $N=1257$ pixels on the boundary of the shape, while the bottom part shows the real and imaginary parts of the frequency components, the Fourier descriptors (FD), of the boundary:

gumbyspacefreq.png

The following image shows the reconstruction of Gumby based on the first $M<N$ low frequency components (excluding the DC). Top: $M=1,\;2,\;3$, and $4$; middle: $M=5,\;6,\;7$, and $8$; bottom: $M=10,\;20,\;30$, and $M=N=1,257$.

gumbyreconstruct.png

It can be seen that the reconstructed figures using a small percentage of the frequency components are very similar to the actual figure, which can be reconstructed using one hundred percent of the FDs.

Fourier discriptor has the following properties:


next up previous
Next: FD used for shape Up: fd Previous: fd
Ruye Wang 2013-11-18