Go to Post I know nothing. - Erin Rapacki [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 28-01-2006, 21:11
bush's Avatar
bush bush is offline
Registered User
AKA: Aaron
FRC #0710 (Pine Crest School)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Fort Lauderdale, Florida
Posts: 42
bush has a spectacular aura aboutbush has a spectacular aura about
Send a message via AIM to bush
Pre-programmed RGB values

I'm using Kevin's streamlined camera code. camera.h defines the default min/max RGB values that are used by Track_Color(). The mean RGB value is 100R, 16G, 122B (or #64107A in base 16). THIS IS THAT COLOR.. This obviously isn't green. I'm sure these are in fact the correct colors to use (I haven't tested yet), but I want to make sure I am understanding all of the code correctly.

I don't consider myself an expert on cameras, but my only guess would be that the color being programmed into the camera is the negative of the actual color we are tracking. Come to think of it, I think I remember learning somewhere that purple and green are complements.

In any event, somebody please explain
  #2   Spotlight this post!  
Unread 28-01-2006, 21:47
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: Pre-programmed RGB values

Read the code a little more closely, with manual in hand to find out what the control registers mean, and you might find the spot where it puts the camera in YCrCb color mode. The values you see aren't RGB values. Does that help?
  #3   Spotlight this post!  
Unread 28-01-2006, 22:04
bush's Avatar
bush bush is offline
Registered User
AKA: Aaron
FRC #0710 (Pine Crest School)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Fort Lauderdale, Florida
Posts: 42
bush has a spectacular aura aboutbush has a spectacular aura about
Send a message via AIM to bush
Re: Pre-programmed RGB values

Ah in State 9
I missed that before, thanks.
  #4   Spotlight this post!  
Unread 28-01-2006, 22:13
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Pre-programmed RGB values

Quote:
Originally Posted by bush
Ah in State 9
I missed that before, thanks.
It's also mentioned in the handy CMUcam2 FAQ: http://kevin.org/frc/camera.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Do you need the exposure values? Code\\Pilot Programming 5 20-02-2005 20:08
Paint values capenga Programming 1 20-02-2005 13:25
Acceleration Sensor Connected, but values are odd.... Leav Electrical 7 04-02-2005 15:28
trentonDrive.c: our joystick/wheel drive code gnormhurst Programming 16 03-02-2005 14:40
A testimony to my unique FIRST experience: Ken Leung General Forum 22 14-04-2004 20:45


All times are GMT -5. The time now is 01:04.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi