A problem with 'bwconncomp' function ....
Mostra commenti meno recenti
hi all,
please i need a help this is a part of my code ,
T = maketform('affine',[cn -sn 0;
sn cn 0;
(size(im,2)/2-ct(2)) (size(im,1)/2-ct(1)) 1]);
im = imtransform(im,T);
BW = im>thr;
CC = bwconncomp(BW);
when i tried to run it ,i got this error : "??? Undefined function or method 'bwconncomp' for input arguments of type 'logical'."
what is the solution please?
Thanks
2 Commenti
Sean de Wolski
il 1 Ago 2012
What version of MATLAB are you using?
mmm ssss
il 1 Ago 2012
Risposta accettata
Più risposte (1)
Image Analyst
il 1 Ago 2012
1 voto
It could be newer than your version. Check here: http://www.mathworks.com/help/techdoc/rn/rn_intro.html Either that, or you overrode the definition with your own somehow.
4 Commenti
mmm ssss
il 1 Ago 2012
Walter Roberson
il 1 Ago 2012
You would need to install a newer version, or else write the functionality based upon routines you do have access to.
Sean de Wolski
il 1 Ago 2012
or find something on the FEX that does this... (hint hint)
Image Analyst
il 1 Ago 2012
You can use bwlabel() instead of bwconncomp().
Categorie
Scopri di più su Region and Image Properties in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!