autocorr2 - Two-point autocorrelation

Determine the radially averaged autocorrelation of a binary image


Updated 3 Feb 2021

View License

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:

Cite As

Santiago Benito (2023). autocorr2 - Two-point autocorrelation (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!


Version Published Release Notes