Setting Brightness Using The Flycapture Api; Setting Shutter Using The Flycapture Api; Setting Gain Using The Flycapture Api - Point Grey Flea3 GigE Technical Reference

Gige digital camera
Hide thumbs Also See for Flea3 GigE:
Table of Contents

Advertisement

Point Grey Flea3 GigE Technical Reference
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.
A FlyCapture API Code Samples
89

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents