Speckle Size via Autocorrelation

Version 1.1.0.0 (2.77 KB) by Joel
Outputs the size of speckles in an image that has a **uniform background**.
2.1K Downloads
Updated 22 Aug 2009

View License

This function takes an RGB image as input and gives the FWHM and 1/e^2 radius of Gaussian-assumed speckles in the horizontal and vertical directions in pixel units.
The function is heavily commented for very easy use, and all mathematical steps are explained in the comments. Briefly, the autocovariance of each row (column) is averaged; the resulting plot is fitted to a Gaussian, from which the horizontal (vertical) FWHM and 1/e^2 values are calculated.
In addition, the function outputs the goodness-of-fit statistics for this Gaussian fit. These should always be checked to ensure proper functioning.

Cite As

Joel (2024). Speckle Size via Autocorrelation (https://www.mathworks.com/matlabcentral/fileexchange/25046-speckle-size-via-autocorrelation), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
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
1.1.0.0

Grammar corrrection.

1.0.0.0