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 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Walter Roberson
2016-4-28
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 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!