Determine center of cluster of points
Mostra commenti meno recenti
I've got (in a x and y vector) some locations which form small clusters, about 10~15 point per cluster. They aren't ordered in any way. And there are multiple clusters per 'image'. How can I determine the center of such a cluster?
Background info: I've got a picture of a few (2 in my case) beads and i'm trying to get the exact location (center) of these beads. With find() I'm getting some points (a cluster) in every bead. But i need just one x,y location per bead.
1 Commento
Arjen
il 16 Mag 2012
Risposta accettata
Più risposte (1)
Image Analyst
il 16 Mag 2012
0 voti
If you know how many clusters there should be, then you can use k-means (it's in the stats toolbox). For related questions, see <http://www.mathworks.com/searchresults/?q=%22k-means%22&q1=&q2=%22k-means%22&q3=¬q=&c[]=support>
1 Commento
Arjen
il 16 Mag 2012
Categorie
Scopri di più su Hierarchical Clustering in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!