Basler Camera User Manual page 178

Usb 3.0 cameras
Table of Contents

Advertisement

Color Creation and Enhancement
Enabling and Setting Color Adjustment
You can set the Color Adjustment Hue and Color Adjustment Saturation parameter values from
within your application software by using the Basler pylon API. The following code snippets illustrate
using the API to set the parameter values:
// Select red as the color to adjust
camera.ColorAdjustmentSelector.SetValue(ColorAdjustmentSelector_Red);
// Set the red hue parameter value
camera.ColorAdjustmentHue.SetValue(-1.125);
// Set the red saturation parameter value
camera.ColorAdjustmentSaturation.SetValue(1.375);
// Select cyan as the color to adjust
camera.ColorAdjustmentSelector.SetValue(ColorAdjustmentSelector_Cyan);
// Set the cyan hue parameter value
camera.ColorAdjustmentHue.SetValue(-1.6875);
// Set the cyan saturation parameter value
camera.ColorAdjustmentSaturation.SetValue(0.85);
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.1 on
168
AW00123402000
page
37.
Basler ace USB 3.0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Aca2000-165Aca2040-90Aca3800-14Aca4600-10

Table of Contents