A problem with 'bwconncomp' function ....

1 visualización (últimos 30 días)
mmm ssss
mmm ssss el 1 de Ag. de 2012
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 comentarios
Sean de Wolski
Sean de Wolski el 1 de Ag. de 2012
What version of MATLAB are you using?
mmm ssss
mmm ssss el 1 de Ag. de 2012
Thanks for your reply .
i used this 7.7.0.471 (R2008b)

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 1 de Ag. de 2012
bwconncomp() was introduced in R2009a.

Más respuestas (1)

Image Analyst
Image Analyst el 1 de Ag. de 2012
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 comentarios
Sean de Wolski
Sean de Wolski el 1 de Ag. de 2012
or find something on the FEX that does this... (hint hint)
Image Analyst
Image Analyst el 1 de Ag. de 2012
You can use bwlabel() instead of bwconncomp().

Iniciar sesión para comentar.

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by