Go to Post Good thing you skipped this year. You don't need exhaustion to sleep through Recycle Rush. - Gregor [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 15-02-2006, 17:18
MarkVH's Avatar
MarkVH MarkVH is offline
Registered User
AKA: Mark VanHaitsma
FRC #0288 (RoboDawgs)
Team Role: College Student
 
Join Date: Dec 2004
Rookie Year: 2003
Location: Grandville
Posts: 30
MarkVH is on a distinguished road
Change color that is tracked.

How can we change what color (other than green) is tracked in Mr. Watsons code?

Last edited by MarkVH : 15-02-2006 at 17:26.
  #2   Spotlight this post!  
Unread 15-02-2006, 17:20
pwilczynski's Avatar
pwilczynski pwilczynski is offline
Registered User
FRC #0236 (Techno Ticks)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 1993
Location: Connecticut
Posts: 52
pwilczynski is on a distinguished road
Re: Change color that is tracked.

Quote:
Originally Posted by MarkVH
Where can we change what color is tracked in Mr. Watsons code?
I don't have the code right in front of me, but I believe that the colors are changed via an array, i.e. you change them in one portion of the code and then they automatically update.

There is also a large amount of information on this in the Camera Calibration Guide

Last edited by pwilczynski : 15-02-2006 at 17:25. Reason: Camera Calibration
  #3   Spotlight this post!  
Unread 15-02-2006, 18:05
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: Change color that is tracked.

Quote:
Originally Posted by MarkVH
How can we change what color (other than green) is tracked in Mr. Watsons code?
You change the color parameters in camera.h

#define R_MIN_DEFAULT 90 // Rmin for call to Track_Color()
#define R_MAX_DEFAULT 110 // Rmax for call to Track_Color()
#define G_MIN_DEFAULT 15 // Gmin for call to Track_Color()
#define G_MAX_DEFAULT 26 // Gmax for call to Track_Color()
#define B_MIN_DEFAULT 106 // Bmin for call to Track_Color()
#define B_MAX_DEFAULT 128 // Bmax for call to Track_Color()
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
If you could change one rule - eliminate ship requirement discussion Andy Baker General Forum 53 28-10-2005 22:23
Team Plan change due to Fee increase? SpaceOsc Team Organization 3 02-06-2004 21:29
heres the code. y this not working omega Programming 16 31-03-2004 15:18
Postoholic text change Trashed20 CD Forum Support 1 02-12-2003 09:08


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

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