EasyManua.ls Logo

Point Grey Flea3 FL3-U3 - Example: Setting Sharpness Using the Flycapture API; Gamma and Lookup Table

Point Grey Flea3 FL3-U3
173 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 USB 3.0 Technical Reference 7 Imaging Parameters and Control
Field Bit Description
Value [20-31]
Value.
A write to this value in ‘Auto mode will be ignored.
7.6.2 Example: Setting Sharpness Using the FlyCapture API
The following FlyCapture 2.0 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 );
7.7 Gamma and Lookup Table
The camera supports gamma and lookup table (LUT) functionality.
Sensor manufacturers strive to make the transfer characteristics of sensors inherently linear, which means that as the
number of photons hitting the imaging sensor increases, the resulting image intensity increases are linear. Gamma can
be used to apply a non-linear mapping of the images produced by the camera. Gamma is applied after analog-to-digital
conversion and is available in all pixel formats. Gamma values between 0.5 and 1 result in decreased brightness effect,
while values between 1 and 4 produce an increased brightness effect. By default, Gamma is on and has a value of
1.25. To obtain a linear response, turn gamma off.
For 8-bit, gamma is applied as:
OUT = 255*(IN/255)^1/gamma
When Gamma is turned on, Lookup Table is turned off. When Lookup Table is turned on, Gamma is
turned off.
Lookup Table allows the user to access and control a lookup table (LUT), with entries stored on-board the camera. The
LUT is modified under the following circumstances:
Revised 9/27/2012
Copyright ©2011-2012 Point Grey Research Inc.
103

Table of Contents

Related product manuals