MATLAB有OTSU分割图像的函数吗

2025-05-22 11:27:38
推荐回答(1个)
回答1:

有的,函数是graythresh,代码如下,coins.png是自带的图像,代码可直接调用:

I = imread('coins.png');
level = graythresh(I);
BW = im2bw(I,level);
imshow(BW)