EasyManua.ls Logo

Point Grey Flea3 GigE - Setting Brightness Using the Flycapture API; Setting Shutter Using the Flycapture API; Setting Gain Using the Flycapture API

Point Grey Flea3 GigE
132 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Point Grey Flea3 GigE Technical Reference A FlyCapture API Code Samples
A.4 Setting Brightness Using the FlyCapture API
The following FlyCapture code snippet adjusts brightness to 0.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 = BRIGHTNESS;
//Ensure the property is set up to use absolute value control.
prop.absControl = true;
//Set the absolute value of brightness to 0.5%.
prop.absValue = 0.5;
//Set the property.
error = cam.SetProperty( &prop );
A.5 Setting Shutter Using the FlyCapture API
The following FlyCapture code snippet adjusts the shutter speed to 20 ms using the C++ interface. The snippet assumes a
Camera object cam.
//Declare a Property struct.
Property prop;
//Define the property to adjust.
prop.type = SHUTTER;
//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 shutter to 20 ms.
prop.absValue = 20;
//Set the property.
error = cam.SetProperty( &prop );
A.6 Setting Gain Using the FlyCapture API
The following FlyCapture code snippet adjusts gain to 10.5 dB using the C++ interface, and assumes a Camera object
cam.
//Declare a Property struct.
Property prop;
//Define the property to adjust.
prop.type = GAIN;
//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 gain to 10.5 dB.
prop.absValue = 10.5;
//Set the property.
Revised 10/29/2013
Copyright ©2010-2013 Point Grey Research Inc.
89

Table of Contents

Related product manuals