Point Grey Flea3 GigE Technical Reference
A FlyCapture API Code Samples
error = cam.SetProperty( &prop );
A.7
Setting Auto Exposure Using the FlyCapture API
The following FlyCapture code snippet adjusts auto exposure to -3.5 EV using the C++ interface. The snippet assumes a
Camera
object
cam
.
//Declare a Property struct.
Property prop;
//Define the property to adjust.
prop.type = AUTO_EXPOSURE;
//Ensure the property is on.
prop.onOff = true;
//Ensure auto-adjust mode is off.
prop.autoManualMode = false;
//Ensure the property is set up to use absolute value control.
prop.absControl = true;
//Set the absolute value of auto exposure to -3.5 EV.
prop.absValue = -3.5;
//Set the property.
error = cam.SetProperty( &prop );
A.8
Setting Sharpness Using the FlyCapture API
The following FlyCapture code snippet adjusts sharpness to 1500 using the C++ interface. The snippet assumes a
Camera
object
cam
.
//Declare a Property struct.
Property prop;
//Define the property to adjust.
prop.type = SHARPNESS;
//Ensure the property is on.
prop.onOff = true;
//Ensure auto-adjust mode is off.
prop.autoManualMode = false;
//Set the value of sharpness to 1500.
prop.valueA = 1500;
//Set the property.
error = cam.SetProperty( &prop );
A.9
Setting Gamma Using the FlyCapture API
The following FlyCapture code snippet adjusts gamma to 1.5 using the C++ interface. The snippet assumes a
Camera
object cam.
//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;
Revised 10/29/2013
Copyright ©2010-2013 Point Grey Research Inc.
90