This function calculates the radially averaged autocorrelation (also known as pair correlation or two-point correlation of the pixels of an image as a function of distance. The function is really fast because it uses the Fourier transform for the convolution of the original image. The code also corrects for the finite image size: images close to the edge have fewer neighbors than particles near the center.
The code is inspired by its imagej version, programmed by Michael Schmid. More information here: https://imagejdocu.tudor.lu/macro/radially_averaged_autocorrelation
Santiago Benito (2021). autocorr2 - Two-point autocorrelation (https://www.mathworks.com/matlabcentral/fileexchange/86852-autocorr2-two-point-autocorrelation), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!