Calculate the two-point correlation function using Fourier transforms
im (ndarray) – The image of the void space on which the 2-point correlation is desired.
result – A custom object with the following data added as named attributes:
The distance between two points.
The probability that two points of the stated separation distance are within the same phase
- Return type
The fourier transform approach utilizes the fact that the autocorrelation function is the inverse FT of the power spectrum density. For background read the Scipy fftpack docs and for a good explanation see this thesis
Click here to view online example.