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 中查找有关 Statistics and Machine Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!