Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Fourier Transform, Discrete Forier Transform image processing

  1. May 23, 2014 #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.
     
  2. jcsd
  3. May 23, 2014 #2

    AlephZero

    User Avatar
    Science Advisor
    Homework Helper

    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.
     
  4. May 24, 2014 #3

    Stephen Tashi

    User Avatar
    Science Advisor

    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.
     
  5. May 24, 2014 #4
    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.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Fourier Transform, Discrete Forier Transform image processing
Loading...