Fourier Transform, Discrete Forier Transform image processing

  • Thread starter joshthekid
  • Start date
  • #1
46
1
Hi all,

Now naturally after completing a physics degree I am very familiar with the form and function of the Fourier Transform (FT) but never have grasped it quite conceptually. I understand that given a function f(x) I can express every functional value as a linear combination of complex sinusoidal functions as in the typical illustration of a square wave and you keep adding sine waves of higher and higher frequencies to get an approximate square wave (that would approach the exact with an infinite number of frequencies). Here is what I struggle with in terms of the continuous FT. When I compute a FT of function I get another function F(k), where k is frequency. I can plot this like any other function but what am I plotting? I think, but I am not positive, that the value of F(k) is the summation of all the linear coefficients C(k) for a particular frequency over all values f(x)? Is this correct?

Second, the real reason I am trying to get everything straight in my head is because I am doing image processing for my research and when I look at the FT, as an image, I am not sure what I am looking at. I know that it represents spatial frequencies in the image, i.e if you make a interference band you get a dot in the center and two dots spaced equidistant from the center. Now, image processing basically comes down to matrix algebra because an image in nothing more than a matrix of intensity values, I(x,y). So when I do the FT I am doing matrix algebra of the image with a matrix composed of several different sinusoidal complex functions. Here is where I am confused, what constitutes a frequency in an image? On a pixel basis, say I have a white dot followed by a black dot pattern that would constitute a certain frequency, I think. However, how does it look from a linear algebra standpoint?

If I have a i by j image A, how do I interpret the image of the FT? So if I follow my logic from the 1D continuous case, assuming it is the correct interpretation, looking at pixels (1,1:j) in A and taking the FT, B=TA, where T is the FT transformation matrix the first matrix element is going to be the summation of all the pixels intensities in that row with a corresponding T element. But when all is said and done and I pull up the image of the Fourier Transform on MATLAB I don't think I am looking at matrix B but instead each pixel (x,y) corresponds to frequency in the x and y directions, i.e if I look at pixel (1,1) in the FT, the intensity corresponds to "how much" a white pixel is followed by a black pixel in the image?

If you have read all this, thanks, I am hoping my interpretation is correct but just want to make sure.
 

Answers and Replies

  • #2
AlephZero
Science Advisor
Homework Helper
7,002
293
If you are working with digital sampled data, you might as well measure "time" in units one sampling interval apart. You can then forget about the actual sample rate (number of samples per second) for time dependent data, and the number of pixels per inch (or per mm) in an image.

In other words, "frequency" doesn't mean very much for the maths of sampled data. "Wavelength" (measured by the number of samples) is a more useful idea.
 
  • #3
Stephen Tashi
Science Advisor
7,674
1,503
i.e if I look at pixel (1,1) in the FT, the intensity corresponds to "how much" a white pixel is followed by a black pixel in the image?

Which MATLAB function are you using? I think an image of a 2-D fourier transform (or anything else) can be presented using various scales.
 
  • #4
46
1
Stephen,

I am using the MATLAB function FFT2() which is the fast fourier transform which is computationally different from what I described, I am just trying to get and idea for the actual mathematics.
 

Related Threads on Fourier Transform, Discrete Forier Transform image processing

Replies
1
Views
1K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
3
Views
2K
Replies
16
Views
7K
Replies
6
Views
3K
  • Last Post
Replies
8
Views
2K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
5
Views
1K
Replies
43
Views
2K
Top