View Single Post
  #2   Spotlight this post!  
Unread 18-02-2007, 23:58
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: WPILib & Camera colors & data

The "dark purple" is what you get if you think of the values as RGB and fail to interpret them in the YCrCb color space instead. The camera picks up on the green glowing color wonderfully if it's switched to YCrCb, which is what the provided code does.

By the way, the maximum reported color value from the camera is 240. In RGB mode, a sufficiently bright light of any color -- including the green target light -- saturates the camera at 240,240,240.