# Mapping the value of a sample in a 2-D DFT to cycles/pixel

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.

-

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 1 / N cycles per pixel.
(M/2 - u) / M, (N/2 - v) / N