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'.
0 件のコメント
回答 (1 件)
Image Analyst
2015 年 2 月 6 日
Why do you think there is a function called chaincode()? I think you want bwboundaries() instead.
10 件のコメント
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 Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!