Hi! I'm facing a problem of not being able to predict which cluster contains the image i require in a k-means clustering method. I've enclosed the details of the problem.
2 views (last 30 days)
Show older comments
Meera Girijan
on 28 Apr 2016
Edited: Meera Girijan
on 30 Apr 2016
I'm doing an image segmentation using k-means algorithm to extract just a particular feature from a whole image, for instance a car from the surrounding environment. I've taken three clusters for this. I need to save just the cluster that contains the car, but not able to isolate it since the clusters are generated randomly.
3 Comments
Accepted Answer
Walter Roberson
on 28 Apr 2016
You cannot use k-means clustering alone to detect the presence or absence of something. k-means clustering is going to find the given number of clusters without having any interpretation of what the clusters mean. If you feed it an image of a banana instead of an image of a car, it is going to find 3 clusters in the image of the banana.
You should therefore be extracting feature descriptions from portions of the image and run clustering on the feature descriptions -- possibly only on two clusters ("matches" and "does not match") You can then given an interpretation to the clustering based upon knowing what the features imply.
4 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!