MSUtils.general.compute_correlation_length.compute_correlation_length#
- MSUtils.general.compute_correlation_length.compute_correlation_length(img)#
Compute the correlation length of an image using FFT and exponential decay fitting.
Parameters: - img: The input image as a NumPy array.
Returns: - cl: Correlation lengths for each dimension. - aspect_ratio: Aspect ratio derived from correlation lengths. - autocorr: The autocorrelation function of the image.