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.
채택된 답변
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!