how to pick component near to other components
조회 수: 1 (최근 30일)
이전 댓글 표시
lets say i have 10 componets in binarized image 7 of them are near to each other but 3 are far away.
Is there any way to pick only components near to each other?
댓글 수: 0
채택된 답변
Image Analyst
2014년 12월 26일
See my Image Segmentation Tutorial http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
Just find the centroid of everything and then find the distances of all blobs to all other blobs. Examine that to find which are close or far away. Perhaps you might also use kmeans() in the Statistics Toolbox if you know that there will always be two clusters.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!