The "EGG" task
-
Hello comrades !!! I need your help. Here is what we have: We have a jpg image that contains gray background and a lot of white eggs on it. We need to get the number of eggs and the size of each eggs. (i think in pixels). How can i do it ? The hardest problem is to get the whole egg (To mark the edges) and smart divide screen into some parts, for easiest count. Thanks for help.
One nation - underground
-
Hello comrades !!! I need your help. Here is what we have: We have a jpg image that contains gray background and a lot of white eggs on it. We need to get the number of eggs and the size of each eggs. (i think in pixels). How can i do it ? The hardest problem is to get the whole egg (To mark the edges) and smart divide screen into some parts, for easiest count. Thanks for help.
One nation - underground
Homework? One thing you will find on this site is that we don't tend to do your tasks for you. We give advice and assistance where we can, but we do expect that you have had a go yourself.
Deja View - the feeling that you've seen this post before.
-
Hello comrades !!! I need your help. Here is what we have: We have a jpg image that contains gray background and a lot of white eggs on it. We need to get the number of eggs and the size of each eggs. (i think in pixels). How can i do it ? The hardest problem is to get the whole egg (To mark the edges) and smart divide screen into some parts, for easiest count. Thanks for help.
One nation - underground
Break the eggs, make an omelet,
return 1
. -
Break the eggs, make an omelet,
return 1
.No no. Break the eggs in two, make an omelet, count the shell pieces, return half of that number.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google
-
No no. Break the eggs in two, make an omelet, count the shell pieces, return half of that number.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google
So that would be:
while (egg == WHOLEEGG) { egg = (double)egg / 2; break; }
Deja View - the feeling that you've seen this post before.
-
So that would be:
while (egg == WHOLEEGG) { egg = (double)egg / 2; break; }
Deja View - the feeling that you've seen this post before.
yep. you would still need an egg finder algorithm (A* or other), a shell counter and a return statement.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google