I want to get chain code but it is showing error. Please help me.

1 次查看(过去 30 天)
I=imread('C:\Users\abcd\Desktop\mini.jpg');
bw=im2bw(I)
bw=~bw;
BW2 = bwperim(bw,8);
image=BW2;
[x y]=find(image==1);
b=[x y];
[cc]=chaincode(b)
This is showing eror: ??? Undefined function or method 'chaincode' for input arguments of type. Please tell me where I am making mistake. 'double'.

回答(1 个)

Image Analyst
Image Analyst 2015-2-6
Why do you think there is a function called chaincode()? I think you want bwboundaries() instead.
  10 个评论
MONIKA SAINI
MONIKA SAINI 2015-2-8
Tell me bwboundaries(noholes) function gives the number of inner boundaries or outer boundaries??
Image Analyst
Image Analyst 2015-2-8
If you tell it to not find holes, it will find only the outer boundaries, not the boundaries of the holes.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Deep Learning for Image Processing 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by