Connected points
1 回表示 (過去 30 日間)
古いコメントを表示
Hi, I need to know if there is any way to find the indices of connected points. To be more specific, is there any way that to preserve those indices so that it could be used for comparison in an altered matrix( the matrix comes from a picture). Thanks for the help.
3 件のコメント
採用された回答
Walter Roberson
2012 年 1 月 23 日
regionprops() can return the indices of the points for each region.
Or more simply,
find(a==2)
11 件のコメント
Walter Roberson
2012 年 1 月 25 日
The [] is left-square-bracket followed by right-square-bracket. That command is there to toss out the 0's that correspond to "no object present here".
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!