matlab函数 bwperim
功能:查找二值图像的边缘。
BW2 = bwperim(BW1,conn)表示从输入图像BW1中返回只包括对象边缘像素点的图像。
conn的定义值如下:
BW1 = imread('circbw.tif');
BW2 = bwperim(BW1,8);
imshow(BW1)
用法:
BW2 = bwperim(BW1)
BW2 = bwperim(BW1,conn)BW2 = bwperim(BW1,conn)表示从输入图像BW1中返回只包括对象边缘像素点的图像。
conn的定义值如下:
例子:
BW1 = imread('circbw.tif');
BW2 = bwperim(BW1,8);
imshow(BW1)
figure, imshow(BW2)