Setting White Balance Using The Flycapture Api - FLIR GRASSHOPPER 3 Series Technical Reference

Gige vision
Table of Contents

Advertisement

//Declare a Property struct.
Property prop;
//Define the property to adjust.
prop.type = GAMMA;
//Ensure the property is on.
prop.onOff = true;
//Ensure the property is set up to use absolute value control.
prop.absControl = true;
//Set the absolute value of gamma to 1.5
prop.absValue = 1.5;
//Set the property.
error = cam.SetProperty( &prop );
A.10 Setting White Balance Using the FlyCapture API
The following FlyCapture code snippet adjusts the white balance red channel to 500 and the blue channel to 850
using the C++ interface. The snippet assumes a Camera object cam.
//Declare a Property struct.
Property prop;
//Define the property to adjust.
prop.type = WHITE_BALANCE;
//Ensure the property is on.
prop.onOff = true;
//Ensure auto-adjust mode is off.
prop.autoManualMode = false;
//Set the white balance red channel to 500.
prop.valueA = 500;
//Set the white balance blue channel to 850.
prop.valueB = 850;
//Set the property.
error = cam.SetProperty( &prop );
2/10/2017
©2013-2017
FLIR Integrated Imaging
Solutions Inc. All rights reserved.
®
Grasshopper
3 PGE Technical Reference
A FlyCapture API Code Samples
91

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the GRASSHOPPER 3 Series and is the answer not in the manual?

Table of Contents

Save PDF