MATLAB: Is there is any difference between otsu & graythresh?

image processingimage segmentationMATLAB

i am trying to make image segmentation using otsu's method but i am confused about the difference between using that function (IDX = otsu()) or using graythresh(I) ,Regarding that the first function didn't work and always that error appears (??? Undefined function or method 'otsu' for input arguments of type'double'.)…

Best Answer

You may find Otsu doesn't work well. It seems to work best for high contrast images with well separated bimodal histograms. If you have a skewed unimodal histogram, it often doesn't pick what you'd pick if you did it manually (with my thresholding app: http://www.mathworks.com/matlabcentral/fileexchange/29372-thresholding-an-image). Personally I like the triangle method better - it seems to work with more images that are continuous gray scale.
Related Question