This method first estimates a cutoff, then calculates the distribution of pixels within the cutoff in order to determine the final threshold.
I have found this method to work quite well for fluorescence microscopy images in which most of the pixels are background and the background is approximately gaussian.
There are a couple parameters than can be used to tune the threshold.
Jake Hughey (2022). Simple Image Thresholding (https://www.mathworks.com/matlabcentral/fileexchange/44291-simple-image-thresholding), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: Ridler-Calvard image thresholding
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!