CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2004
    Posts
    2

    Color Detection Algorithms

    I am trying to write an algorithm for detection of the color green. The thing is that if I try detecting the shade of a pixel in a picture, there are more than a million different shades possible. How do I sift thourgh all these different shades and detect which ones are green ? Does anyone know of a simple way to do it or of any prevelant algorithms that does it for you ?

  2. #2
    Join Date
    Nov 2002
    Location
    Columbus, Ohio
    Posts
    117
    Just a thought, Get the pixel's rgb value. If the g > r && g > b then its a shade of green. Let me know what you come up with.
    Its better to have people think you're a fool than to open your mouth and remove all doubt.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured