MATLAB: How to use otsu’s method image segmentation

Image Processing Toolboxotsu's methodthresholding method

hye everyone, i'm learning about otsu's method. can someone please tell me about the step and example of the algorithm in matlab. i'm new user of matlab and i don't know much. please help me.

Best Answer

Isn't the example and explanation in the documentation of the function ( graythresh) enough?
I = imread('coins.png');
level = graythresh(I);
BW = im2bw(I,level);
imshow(BW)