FFT2 frequency of each pixel in a 2D Fourier transformed image
Show older comments
I can not find any documentation describing exactly what the frequencies should be for a 2D Fourier transformed image. FFT should place the DC coefficeint (corrosponding to 0,0 frequency) in the upper left. However, the range of frequencies should go from -N/2 to N/2, where N is the width of the image in pixels. So how does the frequency increase along each axis of the transformed image? If it simply increased by 1/(pixel width) for each consecutive pixel, the range of frequncies would be 0 - N/pixelWidth, which is obviously incorrect.
I can use fftshift(fft(OriginalImage)) to shift the DC component to the center of the image. After doing this, I assume that the u component of frequency is just
number of pixels from the center pixel/pixel width.
But what happens when the width of the original image is an even number of pixels? It seems like the DC component is being placed in the upper left of the fourth quadrant. Quadrants 1,2, and 3 then run from zero to the Nyquist frequency (or -Nfreq to zero), and quadrant 4 only runs from zero to one less than the Nyquist frequency. This does not make any sense to me.
Can someone please clarify what should be happening?
Thanks
Accepted Answer
More Answers (0)
Categories
Find more on Fourier Analysis and Filtering in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!