two_point_correlation

two_point_correlation(im)[source]

Calculate the two-point correlation function using Fourier transforms

Parameters

im (ndarray) – The image of the void space on which the 2-point correlation is desired.

Returns

result – A custom object with the following data added as named attributes:

’distance’

The distance between two points.

’probability’

The probability that two points of the stated separation distance are within the same phase

Return type

Results object

Notes

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

Examples

Click here to view online example.