You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
I wasn't satisfied with the existing matlab implementations of the Ridler-Calvard algorithm, so I wrote my own.
Besides returning the threshold value, the function can also return the thresholded (binary) image.
The function also allows one to apply a log transform to the image prior to thresholding. The log transform may result in a better threshold, if the variance of the foreground is considerably higher than the variance of the background.
Cite As
Jake Hughey (2026). Ridler-Calvard image thresholding (https://uk.mathworks.com/matlabcentral/fileexchange/44255-ridler-calvard-image-thresholding), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: Automatic Thresholding, Automatic Thresholding, Automatic Thresholding
Inspired: BiofilmQ, Simple Image Thresholding
General Information
- Version 1.1.0.0 (1.63 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
