The activity has four parts and each part introduces a different application of Fourier Transform on image processing.
The objective of the first part of the activity is to familiarize us with the nature of Fourier Transform. It is inclined towards visualizing the effects of certain programming commands, related to Fourier Transform, on the original image. We simulated some methods to emphasize some important concepts needed in applying Fourier Transform to an image.
Figure 1: First row - original images, second row - fft of images, third row - fftshifted second row, last row - fft of fft of original images. |
In Fig. 1, the subject images - the circle and the letter A in the top most layer were subjected to a 2D Fourier Transform which results to the set of images shown on the second layer. The set of images on the third layer is the result of using fftshift() to the images on the second layer. The lowest layer represents the subject images after undergoing two successive 2D Fourier transformations.
It is observed in the images after applying Fourier Transform that most of the values are located at the corners of the image. When fftshift() was applied to it, the diagonal quadrants of the images in the second layer were interchanged resulting to the images in the third layer. Hence, the fftshift() function corrects the redistribution of the quadrants after applying the 2D Fourier Transform to the original image.
Observing the lowest layer in Fig. 1, it can be concluded that two successive application of 2D Fourier Transform to an image results to an inverted version of the image.
Now, in the second part of the activity, the method of Convolution is introduced.
Figure 2: Convolution of circles with varying radius and the letters VIP. |
Convolution, basically, is the combination of two objects (in our case - images) to obtain a resulting object having the characteristic of the two original objects smeared together.
In Fig. 2, the top layer are circles with varying radius, the middle layer is the image to be convolved with the circles and the bottom layer shows the images of the convolution of the top and middle layers.
It can be inferred here that the smaller the radius of the circle convolved with the other image, the bigger the distortion of the resulting image.
In the third part of the activity we studied correlation. Correlation is the process of of finding similarities between two signals. In image processing, the method of correlation is a very powerful tool especially in matching algorithms.
Figure 3: Last column is the correlation of the characters in a phrase in the left column with the letter A in the middle column. |
In Fig. 3, we can see the correlation between the image containing a phrase and the letter A. It can be observed in the resulting image that at the locations of letter A's in the phrase, the correlation value is high. This implies that the method can be utilized in rough searching of similarities between a template and an image.
In the last part, we performed the method of edge detection using the convolution integral.
Figure 4: Edge detection of patterns in the middle column with the letters VIP. |
We can observe here that in Fig. 4, the detection pattern when applied to the original image, the resulting image highlights the edges of the original image. Also, the detection level vary depending on the detection pattern used.
In this activity I would rate myself 10/10 for the complete results.
Source:
Activity Sheet for Activity 6 - Dr. Maricor Soriano