How do I classify points in an image into groups?
3 次查看(过去 30 天)
显示 更早的评论
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149167/image.png)
0 个评论
回答(3 个)
Salaheddin Hosseinzadeh
2015-4-17
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 ;)
0 个评论
Image Analyst
2015-4-17
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 个评论
Image Analyst
2015-4-23
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.
另请参阅
类别
在 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!