bwboundaries函数使用--标记不同的区域

clc; clear all; I=imread('test.jpg'); figure; imshow(I); title('原始图像'); bw=im2bw(I,graythresh(I));  %图像二值化 figure; imshow(bw); title('二值图像'); [b,l]=bwboundaries(bw,'noholes');  %搜索物体的外边界  figure; imsh
相关文章
相关标签/搜索