Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Change color that is tracked. (http://www.chiefdelphi.com/forums/showthread.php?t=44085)

MarkVH 15-02-2006 17:18

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

pwilczynski 15-02-2006 17:20

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

bear24rw 15-02-2006 18:05

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()


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

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