MATLAB Answers

After segmenting, how can I do uncompleted fruit image?

5 views (last 30 days)
Yuki Zue
Yuki Zue on 21 Jan 2017
Edited: Image Analyst on 22 Jan 2017
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 Comments

Show 1 older comment
Yuki Zue
Yuki Zue on 22 Jan 2017
Thank you so much sir. I have example image (apple). This image is segmented using k-means clustering and threshold. But it has two color and final result is not completed.So I want to know which function can I add in this system.Most fruit images are completed.But some images are not ok. Thank you so much for your guidelines sir.

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 22 Jan 2017
Edited: Image Analyst on 22 Jan 2017
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.

  0 Comments

Sign in to comment.

Sign in to answer this question.