How to get only one white dot in place of many scattered neighboring white dots
조회 수: 1 (최근 30일)
이전 댓글 표시
I have attached 'm1.jpg' with this queation. I have placed a red colored boxes around the collection of white dots in the image where I want to get only one white dot in replacement of the bunch of white dots. Is there any function or trick you suggest. Please share an automated solution.
댓글 수: 0
채택된 답변
KSSV
2018년 11월 16일
Get the locations of the points using find..group them and use mean to each group. YOu will get a single point.
추가 답변 (1개)
Image Analyst
2018년 11월 20일
You can use kmeans() if you have the Statistics and Machine Learning Toolbox. It will give you the cluster centroids.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Spatial Search에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!