Go to Post Differentiating based on any superficial criteria (gender, race, or other demographic) only serves to reinforce the false idea that they matter. - JamesCH95 [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 11-02-2010, 21:44
wywern209 wywern209 is offline
Registered User
FRC #2202
 
Join Date: Jan 2009
Location: brookfield,WI
Posts: 4
wywern209 is an unknown quantity at this point
camera black & white

We have modified our color level & brightness so that the camera only displays black and white images. We were wondering how to change that back to color. When we turn our camera off and on, reboot the robot, it still displays black & white images... Are there any suggestions?

Thanks!

Code:
HSLImage image; // Create and set up a camera instance 
		AxisCamera &camera = AxisCamera::getInstance(); 
		camera.writeResolution(k160x120); 
		camera.writeBrightness(0);
		
		myRobot.Drive(0.0, 0.0);
		Toggler cameraBrightness = new Toggler();
		Toggler cameraBrightness2 = new Toggler();
		Toggler cameraBrightness3 = new Toggler();
		Toggler cameraBrightness4 = new Toggler();
		Toggler cameraColorLevel = new Toggler();
		int cBrightness = 0;
		int cColorLevel = 0;
while (IsOperatorControl())
		{
			camera.GetImage(image.image); 
			
			if (cameraBrightness.DoesNewStateToggle(stick.GetRawButton(2)))
			{
				cBrightness++;
				camera.writeBrightness(cBrightness);
			}
			if (cameraBrightness2.DoesNewStateToggle(stick.GetRawButton(3)))
			{
				cBrightness--;
				camera.writeBrightness(cBrightness);
			}
			if (cameraBrightness3.DoesNewStateToggle(stick.GetRawButton(4)))
			{
				cColorLevel++;
				camera.writeColorLevel(cColorLevel);
			}
			if (cameraBrightness4.DoesNewStateToggle(stick.GetRawButton(5)))
			{
				cColorLevel--;
				camera.writeColorLevel(cColorLevel);
			}}
Reply With Quote
 


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
pic: Chief Delphi in Black and White! sanddrag Extra Discussion 16 12-04-2005 12:55
It's not black and white, its COLORED CMU lines! Hershey Programming 1 29-01-2005 17:06
White Paper Discuss: Universities & FIRST CD47-Bot Extra Discussion 1 22-06-2004 00:31
Does anybody have a cad drawing or a black and white picture of this years field? Alex Cormier General Forum 3 28-05-2004 11:46
Black and white image files into AutoCAD? A-Baum Inventor 7 24-04-2004 00:43


All times are GMT -5. The time now is 14:47.

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