这还是otsu二值化吗?

Will this be still otsu Binarization?

我用graythresh对一个图像进行了二值化,我想知道用graythresh对原始值除以最大值再乘以,这种二值化方法还是Otsu吗,如果不是叫什么名字我们可以用这个吗?

 im = imread('flower.jpg');
 max_level = double(max(im(:))); 
 min_level = double(min(im(:)));
 lev = graythresh(double(im)/max_level) * max_level;
 bw = (im>=lev); 

证明你在做 EXACTLY Otsu:

 im = (imread('coins.png'));
 max_level = double(max(im(:))); 
 min_level = double(min(im(:)));
 lev1 = graythresh(double(im)/max_level) * max_level;



 %// if instead of offseting and scalling we just put the image
 lev2=graythresh(im);
 % // and as graythresh returns the value between 0-1 we scale it between 0-255
 lev2=lev2*255;

两个级别都是 126。您使用的不是 Otsu 的任何变体,而是 Otsu 本身。