View Single Post
  #1   Spotlight this post!  
Unread 11-01-2006, 21:42
X-Istence X-Istence is offline
Melt the RC controller!
AKA: Bert JW Regeer
no team
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Montville
Posts: 151
X-Istence will become famous soon enoughX-Istence will become famous soon enough
Send a message via AIM to X-Istence Send a message via MSN to X-Istence
RGB colors in camera.h

Hey,

I am wondering, in camera.h it has the following set:

Code:
#define R_MIN_DEFAULT	85	// Rmin for call to Track_Color()

#define R_MAX_DEFAULT	115	// Rmax for call to Track_Color()

#define G_MIN_DEFAULT	15	// Gmin for call to Track_Color()

#define G_MAX_DEFAULT	17	// Gmax for call to Track_Color()

#define B_MIN_DEFAULT	100 // Bmin for call to Track_Color()

#define B_MAX_DEFAULT	145 // Bmax for call to Track_Color()
Are the lower values what we are looking for? Or are we looking for stuff that is not green?

As far as I remember from RGB, 0,255,0 is looking for green, while 255,0,255 is looking for a mix of red and blue, which would be magenta.

I am using the slimlined, sleek version of Kevin Watson's code, just to simplify things for now.
__________________
My Blog!