After segmenting, how can I do uncompleted fruit image?
Mostra commenti meno recenti
Dear Sir, I am doing Fruit Recognition System.Now I segmented fruit images.But I have a problem.Some segmented fruits are not completed.Which function can I use for uncompleted images.Thank you so much.
4 Commenti
Image Analyst
il 21 Gen 2017
There are hundreds of functions you can use, especially in the Image Processing Toolbox. I don't really know what uncompleted means, nor can I see your images because you forgot to attach them, so that's the best answer I can offer given what little you've shared with us. You might try searching for fruit since people ask about it about every month or two here.
Yuki Zue
il 22 Gen 2017
Modificato: Walter Roberson
il 22 Gen 2017
Risposte (1)
Image Analyst
il 22 Gen 2017
Modificato: Image Analyst
il 22 Gen 2017
0 voti
The problem is your segmentation algorithm is no good. It's better to fix that than to try to repair a bad segmentation with bwconvhull() or activecontour() or something.
I don't know what you want, but if you want just the apple, you can simply threshold. Just get any color channel and see if it is not 255 (pure white).
I don't know what you did for kmeans, but if you want the whole apple you should use k=2, though like I said that is not necessary. But for what it's worth, I'm attaching my color segmentation by kmeans demo to this post.
Categorie
Scopri di più su k-Means and k-Medoids Clustering in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

