请教bwperim的用法
用bwperim提取了二值图像的边界所得到的一个矩阵X中包含的是什么信息?会不会是边界点的坐标,如果是怎么将这些边界点坐标顺序取出来? BW2 = bwperim(BW1) returns a binary image containing only the perimeter pixels of objects in the input image BW1. A pixel is part of the perimeter if it is nonzero and it is connected to at least one zero-valued pixel. The default connectivity is 4 for two dimensions, 6 for three dimensions, and conndef(ndims(BW), 'minimal') for higher dimensions.
你说的X是上面的BW2吗?仔细看一下帮助吧 那怎么从BW2得到边界点的坐标值? 不是,bwperim得到的仍然是像素
其中值是0的点对应的就是边界坐标 能给一个获取边界点(x,y)坐标的例子吗?
页:
[1]