Wednesday, July 28, 2010

A6 – Fourier Transform Model of Image Formation

The Fourier Transform (FT) is a powerful algorithm used in signal and image processing that transforms a temporal signal to a frequency signal.

Familiarization with discrete FFT

Scilab has a function for 2 dimensional FT. This was explored and the results are shown in Figure 1.


Figure 1. (From left to right) Output for (a) intensity of fft, (b) shifted fft, (c) fft applied twice.

It is seen in Figure 1b that the output of the shifted FT of the circle matches the analytical FT of a circle which is an Airy pattern.


Figure 2. (From left to right) Output for (a) intensity of fft, (b) shifted fft, (c) fft applied twice.

The same procedure was done to a image of the letter A. It is seen that applying the fft twice results to an inverted version of the original image. This is because the result of fft2 has the quadrants along the diagonals interchanged.

Simulation of an imaging device

A digital camera has a lens with a finite size. This means that it could only gather a limited number of rays from the object resulting to a reconstruction that is not perfect. This phenomenon is illustrated here.


Figure 3. Original image simulating the object to be imaged.


Figure 4. (From left to right) The "imaged" "VIP" for radii of increasing size.

The “imaged” “VIP” becomes closer to the original “VIP” with increasing radii of the white circle. This means that the larger the aperture of the lens, the higher the quality of the image.

Template Matching Using Correlation

Correlation measures the degree of similarity between two functions or images at that. The more similar they are at a certain position, the higher their correlation. This makes the correlation function very useful in template matching and pattern recognition.

Template matching is a pattern recognition technique used in identifying the common patterns in a scene such as a word or an image. This technique is applied to a text and the results are shown in Figure 5.


Figure 5. (From left to right) The first image is the text, the second is the letter "A" that we will find in the text, the third image shows the result after using the correlation function.

The result after using the correlation function is a map that lights up at the positions where we find the letter "A" in the text. Indeed we are able to find the identical patterns in this particular scene.

Edge detection using the convolution integral


Figure 6. (From left to right) Edge detection using a horizontal pattern, using a point pattern, and using a vertical pattern.

The convolved image for various patterns indicates the edges which are characterized by the pattern. The horizontal pattern makes all the horizontal edges light up, The point pattern makes the whole edge light up and the vertical pattern makes the vertical edges light up. Convolution is a very useful technique for edge detection.

For this activity, I give myself a grade of 10 because I implemented all the sub-activities and I learned and implemented various image processing techniques.

No comments:

Post a Comment