This activity involves applying the Fourier Transform to images and changing details in the frequency domain to enhance an image. First, for some warm-ups, I created various symmetric patterns and observed the FT of the images.
In an image, a 1-pixel dot represents a dirac delta. The FT of two dots symmetric about the center is a sinusoid pattern as shown below.
Figure 1. (a) Image of two dots symmetric about the center. Each dot is only one
pixel. (b) FT of the image in (a), a sinusoid pattern.
In general, the convolution of a pattern and a dirac delta is the repetition of that pattern at the location of the dirac delta. Thus, an image of two circles symmetric about the center can be considered as a convolution of a circle and two dots symmetric at the center. Also, we now know from the previous activity that the FT of a convolution of two images is equal to the product of the FTs of the images.
The FT of two circles symmetric about the center is equal to the product of an Airy pattern and a sinusoid. With varying radius, we can also see that the pattern changes.
Figure 2. Left, from top to bottom: Image of two circles symmetric about the center
with radii 0.01, 0.05 and 0.1, respectively. Right, from top to bottom: FT of the
corresponding images from the left. We can see that as the radius decreases, the
Airy pattern dominates over the sinusoid pattern.
The FT of two squares symmetric about the center is equal to the product of a sinc function and a sinusoid. Here I also show the FT of squares of different sizes.
Figure 3. Left, from top to bottom: Image of two squares symmetric about the center
with sides 0.01, 0.05 and 0.1, respectively. Right, from top to bottom: FT of the
corresponding images from the left. We can see that as the length of the sides
decrease, the sinc pattern dominates over the sinusoid pattern.
I did the same for Gaussian circles and obtained the corresponding FTs.
Figure 4. Left, from top to bottom: Image of two Gaussian circles symmetric about
the center with the standard deviation σ = 0.01, 0.05 and 0.1, respectively. Right,
from top to bottom: FT of the corresponding images from the left. We can see that
as σ decreases, the Gaussian pattern dominates over the sinusoid pattern.
Here I placed random white dots on black background and convolved it with different patterns. I show here the convolution with a star and a pentagon. The locations of the patterns are precisely the randomly generated dirac deltas.
Figure 5. Top, left to right: A pentagon and the convolution with randomly placed
dirac deltas. Bottom, left to right: A five-pointed star and the convolution with
randomly placed dirac deltas.
And last for the preliminaries, I generated equally-spaced white patterns and obtained their corresponding FTs.
Figure 6. Left, from top to bottom: Regularly spaced white lines every 50, 20,
25 (both horizontal and vertical), 10, and 5 lines. Right, from top to bottom: FT of
the corresponding images from the left, which look like interference
patterns from a grating.