Finding the maximum and minimum frequency of a 2D image
I think our friends on Stackoverflow have a solution for you that would be helpful. Despite this being MATLAB code, I believe the solution extends to a general answer to your question.