standard Otsu's method

조회 수: 5 (최근 30일)
ksrujana
ksrujana 2016년 2월 1일
댓글: Ahmed Elazab 2016년 2월 1일
I am not able to write the code for Standard Otsu's method. Can anyone provide the code.
  댓글 수: 1
Ahmed Elazab
Ahmed Elazab 2016년 2월 1일
Standard Otsu thresholding method is already built in in Matlab image processing toolbox using graythresh function. You can check its documentation as well. Here is an example of how to use:
if true
im=imread('cameraman.tif');
thresh= graythresh(im);
BW_im= im2bw(im,thresh);
imshow(BW_im)
end

댓글을 달려면 로그인하십시오.

답변 (0개)

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by