EasyManua.ls Logo

Basler ace acA640-90gm - Page 170

Basler ace acA640-90gm
302 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...
Color Creation and Enhancement
160 Basler ace GigE
You can set the Color Adustment Enable, Color Adjustment Selector, Color Adjustment Hue, Color
Adjustment Hue Raw, Color Adjustment Saturation, and Color Adjustment Saturation Raw
parameter values from within your application software by using the Basler pylon API. The following
code snippet illustrates using the API to set the parameter values:
// Enable the Color Adjustment feature
Camera.ColorAdjustmentEnable.SetValue( true );
// Select red as the color to adjust
Camera.ColorAdjustmentSelector.SetValue( ColorAdjustmentSelector_Red );
// Set the red hue as a floating point value
Camera.ColorAdjustmentHue.SetValue( -1.12 );
// Set the red saturation as a floating point value
Camera.ColorAdjustmentSaturation.SetValue( 2.01 );
// Select cyan as the color to adjust
Camera.ColorAdjustmentSelector.SetValue( ColorAdjustmentSelector_Cyan );
// Set the cyan hue as an integer value
Camera.ColorAdjustmentHueRaw.SetValue( -35 );
// Set the cyan saturation as an integer value
Camera.ColorAdjustmentSaturationRaw.SetValue( 129 );
You can also use the Basler pylon Viewer application to easily set the parameters.
For more information about the pylon API and the pylon Viewer, see Section 3 on page 27.

Table of Contents

Related product manuals