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.
Tristan Ursell (2021). autocorr2d (https://www.mathworks.com/matlabcentral/fileexchange/67348-autocorr2d), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!