I want to get chain code but it is showing error. Please help me.
조회 수: 2 (최근 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!