How do I classify points in an image into groups?
Mostra commenti meno recenti
Hello to you all
I have an image that contains points and I want to combine these points based on the distance between them and finally surround each group;
Thank you for your help, and here attached an example of the image

Risposte (3)
Salaheddin Hosseinzadeh
il 17 Apr 2015
0 voti
Hi Maa Kari,
You can shrink the spots to a single point using bwmorph().
Then you may classify them according to their X and Y position, or you can use a perceptron for classification.
Good luck ;)
Maa Kari
il 17 Apr 2015
0 voti
Image Analyst
il 17 Apr 2015
0 voti
It sounds like you don't have an image but actually just a list of x,y coordinates. Do you have the Statistics and Machine Learning Toolbox? There are functions in there for clustering/classification. For example, you could use kmeans().
4 Commenti
Image Analyst
il 17 Apr 2015
Maa's "Answer" moved here since it's a reply to me and not an "Answer" to the original question:
yes you are right, Assume that i have a list of x,y coordinates , but if i use a kmeans() i must give the (k) number of clusters but i dont konw exactly the number of clusters it changes from an image to an other one,
thanks
Image Analyst
il 17 Apr 2015
Then use one of the other unsupervised methods. What are the two feature along the x and y axis? What image property do they represent? Would you care to show the image?
Maa Kari
il 22 Apr 2015
Image Analyst
il 23 Apr 2015
The Statistics and Machine Learning Toolbox provides supervised and unsupervised machine learning algorithms, including support vector machines (SVMs), boosted and bagged decision trees, k-nearest neighbor, k-means, k-medoids, hierarchical clustering, Gaussian mixture models, and hidden Markov models.
Categorie
Scopri di più su Statistics and Machine Learning Toolbox 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!