If I have an image and its 2-D DFT of that image, what is the mapping between the value of the DFT at (u,v), and the frequency in the spatial domain in the x and y components, in cycles/pixel? I want to be able to say "There is a peak in the DFT at (u,v), which corresponds to this frequency". I don't think the answer is u cycles/pixel, since the values shift with different image sizes, even if the image content remains the same.
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
Well the Nyquist frequency is 0.5 cycles / pixel and the range of frequencies can be considered to range from -0.5 to +0.5 cycles / pixel. So if the dimension in a given axis is N pixels then each pixel is
Depending on your particular DFT/FFT implementation you may have zero frequency in the middle of the image (M/2, N/2) or in the corner (0, 0). For the former case the spatial frequency at u, v will be: