The title may seem a little bit unclear, but I'm going to tell you the whole story and hope to have your comments on it. I'm trying to detect some certain edges, especially those that occurs much more than the others, in a given image. To do this, the best idea is Fourier transform to map the discrete pixel domain into the frequency domain. Before applying the Fourier transform, I have to measure the mean of the distances of some desirable edges, and then use the Fourier transform to find the frequency of them. The problem is that how can I set the mean distance to the FFT algorithm (on Python or Matlab).
Thank you