Compute the 2D spatial autocorrelation of a matrix or image I using the Wiener - Khintchine Theorem. The output is the normalized correlation coefficient -1 < C < 1.
The center pixel of A will have C = 1. Using images with odd dimensions will give results that are easier to interpret.
See detailed examples in the m-file help.