standard Otsu's method

8 vues (au cours des 30 derniers jours)
ksrujana
ksrujana le 1 Fév 2016
Commenté : Ahmed Elazab le 1 Fév 2016
I am not able to write the code for Standard Otsu's method. Can anyone provide the code.
  1 commentaire
Ahmed Elazab
Ahmed Elazab le 1 Fév 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

Connectez-vous pour commenter.

Réponses (0)

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by