How to get only one white dot in place of many scattered neighboring white dots
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
SYED AQEEL HAIDER
le 16 Nov 2018
Réponse apportée : Image Analyst
le 20 Nov 2018
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 commentaires
Réponse acceptée
KSSV
le 16 Nov 2018
Get the locations of the points using find..group them and use mean to each group. YOu will get a single point.
Plus de réponses (1)
Image Analyst
le 20 Nov 2018
You can use kmeans() if you have the Statistics and Machine Learning Toolbox. It will give you the cluster centroids.
0 commentaires
Voir également
Catégories
En savoir plus sur Spatial Search dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!