File Exchange

image thumbnail

Ridler-Calvard image thresholding

version (1.63 KB) by Jake Hughey
Threshold an image using the Ridler-Calvard algorithm


Updated 12 Nov 2013

View License

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 (2020). Ridler-Calvard image thresholding (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)



Added a tolerance to the convergence.

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux