Find continuous elements in matrix
古いコメントを表示
Hi everyone,
my problem is the following: i've one matrix made of two possible values (i.e. 1 and 0). I also have the coordinates of one "starting point". I would like to select all the ones that are connected to this point without selecting the ones that are separeted by zeros. I can't figure out a way to solve the problem... can you help me?
Thanks in advance, Fabio
1 件のコメント
Walter Roberson
2012 年 6 月 18 日
Do you have the Image Processing Toolbox?
採用された回答
その他の回答 (1 件)
Sean de Wolski
2012 年 6 月 18 日
CC = bwconncomp(a);
CC.PixelIdxList{:}
カテゴリ
ヘルプ センター および File Exchange で Spline Postprocessing についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!