After segmenting, how can I do uncompleted fruit image?

조회 수: 1 (최근 30일)
Yuki Zue
Yuki Zue 2017년 1월 21일
편집: Image Analyst 2017년 1월 22일
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
Yuki Zue
Yuki Zue 2017년 1월 22일
편집: Yuki Zue 2017년 1월 22일
This image is final result sir.
Yuki Zue
Yuki Zue 2017년 1월 22일
편집: Walter Roberson 2017년 1월 22일
Original image

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2017년 1월 22일
편집: Image Analyst 2017년 1월 22일
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.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by