フィルターのクリア

A problem with 'bwconncomp' function ....

2 ビュー (過去 30 日間)
mmm ssss
mmm ssss 2012 年 8 月 1 日
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 件のコメント
Sean de Wolski
Sean de Wolski 2012 年 8 月 1 日
What version of MATLAB are you using?
mmm ssss
mmm ssss 2012 年 8 月 1 日
Thanks for your reply .
i used this 7.7.0.471 (R2008b)

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2012 年 8 月 1 日
bwconncomp() was introduced in R2009a.

その他の回答 (1 件)

Image Analyst
Image Analyst 2012 年 8 月 1 日
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 件のコメント
Sean de Wolski
Sean de Wolski 2012 年 8 月 1 日
or find something on the FEX that does this... (hint hint)
Image Analyst
Image Analyst 2012 年 8 月 1 日
You can use bwlabel() instead of bwconncomp().

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by