I want to get chain code but it is showing error. Please help me.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Image Analyst
am 6 Feb. 2015
Why do you think there is a function called chaincode()? I think you want bwboundaries() instead.
10 Kommentare
Image Analyst
am 8 Feb. 2015
If you tell it to not find holes, it will find only the outer boundaries, not the boundaries of the holes.
Siehe auch
Kategorien
Mehr zu Deep Learning for Image Processing finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!