I am not able to write the code for Standard Otsu's method. Can anyone provide the code.

1 Kommentar

Ahmed Elazab
Ahmed Elazab am 1 Feb. 2016
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

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Produkte

Gefragt:

am 1 Feb. 2016

Kommentiert:

am 1 Feb. 2016

Community Treasure Hunt

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

Start Hunting!

Translated by