Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. The "EGG" task

The "EGG" task

Scheduled Pinned Locked Moved IT & Infrastructure
helpquestion
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Saikek
    wrote on last edited by
    #1

    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

    P P 2 Replies Last reply
    0
    • S Saikek

      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

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • S Saikek

        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

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #3

        Break the eggs, make an omelet, return 1.

        L 1 Reply Last reply
        0
        • P PIEBALDconsult

          Break the eggs, make an omelet, return 1.

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          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


          P 1 Reply Last reply
          0
          • L Luc Pattyn

            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


            P Offline
            P Offline
            Pete OHanlon
            wrote on last edited by
            #5

            So that would be:

            while (egg == WHOLEEGG)
            {
              egg = (double)egg / 2;
              break;
            }
            

            Deja View - the feeling that you've seen this post before.

            L 1 Reply Last reply
            0
            • P Pete OHanlon

              So that would be:

              while (egg == WHOLEEGG)
              {
                egg = (double)egg / 2;
                break;
              }
              

              Deja View - the feeling that you've seen this post before.

              L Offline
              L Offline
              Luc Pattyn
              wrote on last edited by
              #6

              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


              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups