MATLAB: Matlab code for image binarization by Otsu’s thresholding

Image Processing Toolboxotsuthreshold

binarize image

Best Answer

Java code for the Otsu thresholding algorithm is given here: http://en.wikipedia.org/wiki/Otsu%27s_method You should have no trouble at all converting that to MATLAB code - it's very easy.