Can someone help me with my image processing?

조회 수: 5 (최근 30일)
john john
john john . 2013년 1월 23일
Hi guys I'm currently doing egg counter, if eggs are just close to each other and no top on other eggs my code can count how many eggs just like this photo. <>
and now my problem if some of the eggs is at the top my code can't recognize how many eggs are there just like this photo. <> <>
anyone can help or suggest me a better algorithm to do it? thanks in advance guys =) this is the code i used
B = im2bw(imfilter(img2, fspecial('gaussian', sigma*3, sigma), 'replicate'), thres);
Bl = bwlabel(B);
Neggs = max(Bl(:))
anybody home? hehe
  댓글 수: 2
john john
john john 2013년 1월 23일
ops sorry for that links sir..

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

채택된 답변

Image Analyst
Image Analyst 2013년 1월 23일
There is no way to count eggs which are obscured. If you had a pile of eggs 10 deep then you simply don't know by seeing only the top layer and part of some underlayers. Your best bet is to avoid the situation in the first place by arranging the eggs in a single layer.
  댓글 수: 1
john john
john john 2013년 1월 23일
Thank you so much Image Analyst, that is the best explanation i must write.. then no more problem =)

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

추가 답변 (1개)

Jurgen 2013년 1월 23일
I think your problem is similar to a recent post by Steve Eddins:
Maybe worth checking that out.


Help CenterFile Exchange에서 Image Preview and Device Configuration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by