Skip to content

Color Adjustment#

The Color Adjustment camera feature allows you to adjust the hue and saturation of individual colors in your images.

You can adjust hue and saturation separately for each primary and secondary color in the RGB color space (red, green, blue, yellow, cyan, and magenta).

If you want to adjust the appearance of all colors in a single step, use the Hue and Saturation feature (if available).

Using the Feature#

Why Use Color Adjustment#

  • Adjusting the hue shifts the colors of the image. This can be useful, e.g., to correct minor, undesirable, color shifts or to create false-color images.
  • Adjusting the saturation changes the colorfulness (intensity) of the colors. Increasing the saturation can be useful to make colors easier to distinguish.

Setting the Color Adjustment Parameters#

  1. Set the ProcessedRawEnable parameter to true (if available and if you're using a Bayer pixel format).
  2. Set the ColorAdjustmentEnable parameter to true (if available).
  3. Set the ColorAdjustmentSelector parameter to the desired color, e.g., Red.
  4. Enter the desired value for the ColorAdjustmentHue parameter. When the parameter is set to 0, the hue is not changed.
  5. Enter the desired value for the ColorAdjustmentSaturation parameter. When the parameter is set to 1, the saturation is not changed.

How It Works#

The parameters of the Color Adjustment feature refer to the RGB color cube.

For easier visualization, the color cube can be projected onto a plane, resulting in a color hexagon:

RGB Color Cube Projected On a Plane

The primary colors (red, green, blue) and the secondary colors (yellow, cyan, magenta) are placed at the corners of this color hexagon.

You can adjust hue and saturation for each of these colors. This affects all areas in the image where the adjusted color predominates. For example, adjusting red affects the colors in the image with a predominantly red component.

The following diagram shows how changing hue and saturation of the color red affects the colors of your images:

Hue and Saturation Adjustment In the Color Hexagon. Adjustments Are Indicated for Red as an Example

The following effects become apparent:

If the value range of the ColorAdjustmentHue parameter is -4.0 to 3.96875:

  • Decreasing the hue changes all red colors (i.e., colors with a predominantly red component) towards yellow.
  • Increasing the hue changes all red colors towards magenta.

If the value range of the ColorAdjustmentHue parameter is -1.0 to 1.0:

  • Increasing the hue changes all red colors (i.e., colors with a predominantly red component) towards yellow.
  • Decreasing the hue changes all red colors towards magenta.

Decreasing the saturation decreases the colorfulness of all red colors. At minimum, all red colors will be replaced by gray.

Increasing the saturation increases the colorfulness of all red colors. At maximum, all red colors are replaced by 100 % red.

Info

When you adjust a color, the nearest neighboring colors in the color hexagon will also be affected to some degree. For example, when you adjust red, yellow and magenta will also be affected.

Additional Parameters#

Depending on your camera model, the following additional parameters are available:

  • ColorAdjustmentEnable: Enables or disables the Color Adjustment feature.
  • ColorAdjustmentReset command: Allows you to reset the color adjustment parameters to their initial values. This is especially useful if your adjustments haven't had the desired effect and you want to return quickly to the original settings.
  • ColorAdjustmentHueRaw: Allows you to enter integer values ranging from -128 to 127 for the hue parameter. The integer range maps linearly to the floating point range with -128 being equivalent to -4.0, 32 being equivalent to 1.0, and 127 being equivalent to 3.96875.
  • ColorAdjustmentSaturationRaw: Allows you to enter integer values ranging from 0 to 255 for the saturation parameter. The integer range maps linearly to the floating point range with 0 being equivalent to 0.0, 128 being equivalent to 1.0, and 255 being equivalent to 1.99219.

Specifics#

Show all camera models

Camera Model Additional Parameters
a2A1920-51gcBAS BslColorAdjustmentEnable
a2A1920-51gcPRO BslColorAdjustmentEnable
a2A1920-51gmBAS Color Adjustment feature not supported
a2A1920-51gmPRO Color Adjustment feature not supported
a2A1920-160ucBAS BslColorAdjustmentEnable
a2A1920-160ucPRO BslColorAdjustmentEnable
a2A1920-160umBAS Color Adjustment feature not supported
a2A1920-160umPRO Color Adjustment feature not supported
a2A3840-13gcBAS BslColorAdjustmentEnable
a2A3840-13gmBAS Color Adjustment feature not supported
a2A3840-45ucBAS BslColorAdjustmentEnable
a2A3840-45umBAS Color Adjustment feature not supported
acA640-90gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA640-90gm Color Adjustment feature not supported
acA640-90uc None
acA640-90um Color Adjustment feature not supported
acA640-120gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA640-120gm Color Adjustment feature not supported
acA640-120uc None
acA640-120um Color Adjustment feature not supported
acA640-121gm Color Adjustment feature not supported
acA640-300gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA640-300gm Color Adjustment feature not supported
acA640-750uc None
acA640-750um Color Adjustment feature not supported
acA720-290gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA720-290gm Color Adjustment feature not supported
acA720-520uc None
acA720-520um Color Adjustment feature not supported
acA780-75gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA780-75gm Color Adjustment feature not supported
acA800-200gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA800-200gm Color Adjustment feature not supported
acA800-510uc None
acA800-510um Color Adjustment feature not supported
acA1280-60gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA1280-60gm Color Adjustment feature not supported
acA1300-22gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA1300-22gm Color Adjustment feature not supported
acA1300-30gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA1300-30gm Color Adjustment feature not supported
acA1300-30uc None
acA1300-30um Color Adjustment feature not supported
acA1300-60gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA1300-60gm Color Adjustment feature not supported
acA1300-60gmNIR Color Adjustment feature not supported
acA1300-75gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA1300-75gm Color Adjustment feature not supported
acA1300-200uc None
acA1300-200um Color Adjustment feature not supported
acA1440-73gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA1440-73gm Color Adjustment feature not supported
acA1440-220uc None
acA1440-220um Color Adjustment feature not supported
acA1600-20gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA1600-20gm Color Adjustment feature not supported
acA1600-20uc None
acA1600-20um Color Adjustment feature not supported
acA1600-60gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA1600-60gm Color Adjustment feature not supported
acA1920-25gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA1920-25gm Color Adjustment feature not supported
acA1920-25uc None
acA1920-25um Color Adjustment feature not supported
acA1920-40gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA1920-40gm Color Adjustment feature not supported
acA1920-40uc None
acA1920-40ucMED None
acA1920-40um Color Adjustment feature not supported
acA1920-40umMED Color Adjustment feature not supported
acA1920-48gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA1920-48gm Color Adjustment feature not supported
acA1920-50gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA1920-50gm Color Adjustment feature not supported
acA1920-150uc None
acA1920-150um Color Adjustment feature not supported
acA1920-155uc None
acA1920-155ucMED None
acA1920-155um Color Adjustment feature not supported
acA1920-155umMED Color Adjustment feature not supported
acA2000-50gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA2000-50gm Color Adjustment feature not supported
acA2000-50gmNIR Color Adjustment feature not supported
acA2000-165uc Color Adjustment feature not supported
acA2000-165um Color Adjustment feature not supported
acA2000-165umNIR Color Adjustment feature not supported
acA2040-25gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA2040-25gm Color Adjustment feature not supported
acA2040-25gmNIR Color Adjustment feature not supported
acA2040-35gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA2040-35gm Color Adjustment feature not supported
acA2040-55uc None
acA2040-55um Color Adjustment feature not supported
acA2040-90uc Color Adjustment feature not supported
acA2040-90um Color Adjustment feature not supported
acA2040-90umNIR Color Adjustment feature not supported
acA2040-120uc None
acA2040-120um Color Adjustment feature not supported
acA2440-20gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA2440-20gm Color Adjustment feature not supported
acA2440-35uc None
acA2440-35ucMED None
acA2440-35um Color Adjustment feature not supported
acA2440-35umMED Color Adjustment feature not supported
acA2440-75uc None
acA2440-75ucMED None
acA2440-75um Color Adjustment feature not supported
acA2440-75umMED Color Adjustment feature not supported
acA2500-14gc Color Adjustment feature not supported
acA2500-14gm Color Adjustment feature not supported
acA2500-14uc None
acA2500-14um Color Adjustment feature not supported
acA2500-20gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA2500-20gcMED ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA2500-20gm Color Adjustment feature not supported
acA2500-20gmMED Color Adjustment feature not supported
acA2500-60uc None
acA2500-60um Color Adjustment feature not supported
acA3088-16gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA3088-16gm Color Adjustment feature not supported
acA3088-57uc None
acA3088-57um Color Adjustment feature not supported
acA3800-10gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA3800-10gm Color Adjustment feature not supported
acA3800-14uc None
acA3800-14um Color Adjustment feature not supported
acA4024-8gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA4024-8gm Color Adjustment feature not supported
acA4024-29uc None
acA4024-29um Color Adjustment feature not supported
acA4096-11gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA4096-11gm Color Adjustment feature not supported
acA4096-30uc None
acA4096-30ucMED None
acA4096-30um Color Adjustment feature not supported
acA4096-30umMED Color Adjustment feature not supported
acA4096-40uc None
acA4096-40ucMED None
acA4096-40um Color Adjustment feature not supported
acA4096-40umMED Color Adjustment feature not supported
acA4112-8gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA4112-8gm Color Adjustment feature not supported
acA4112-20uc None
acA4112-20ucMED None
acA4112-20um Color Adjustment feature not supported
acA4112-20umMED Color Adjustment feature not supported
acA4112-30uc None
acA4112-30ucMED None
acA4112-30um Color Adjustment feature not supported
acA4112-30umMED Color Adjustment feature not supported
acA4600-7gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA4600-10uc None
acA5472-5gc ColorAdjustmentEnable[^a]
ColorAdjustmentReset
ColorAdjustmentHueRaw
ColorAdjustmentSaturationRaw
acA5472-5gm Color Adjustment feature not supported
acA5472-17uc None
acA5472-17um Color Adjustment feature not supported
boA4096-93cc BslColorAdjustmentEnable
boA4096-93cm Color Adjustment feature not supported
boA4112-68cc BslColorAdjustmentEnable
boA4112-68cm Color Adjustment feature not supported
daA1280-54lc Color Adjustment feature not supported
daA1280-54lm Color Adjustment feature not supported
daA1280-54uc Color Adjustment feature not supported
daA1280-54um Color Adjustment feature not supported
daA1600-60lc Color Adjustment feature not supported
daA1600-60lm Color Adjustment feature not supported
daA1600-60uc Color Adjustment feature not supported
daA1600-60um Color Adjustment feature not supported
daA1920-15um Color Adjustment feature not supported
daA1920-30uc Color Adjustment feature not supported
daA1920-30um Color Adjustment feature not supported
daA2500-14lc Color Adjustment feature not supported
daA2500-14lm Color Adjustment feature not supported
daA2500-14uc Color Adjustment feature not supported
daA2500-14um Color Adjustment feature not supported
daA2500-60mc Color Adjustment feature not supported
daA2500-60mci Color Adjustment feature not supported
daA4200-30mci Color Adjustment feature not supported
puA1280-54uc Color Adjustment feature not supported
puA1280-54um Color Adjustment feature not supported
puA1600-60uc Color Adjustment feature not supported
puA1600-60um Color Adjustment feature not supported
puA1920-30uc Color Adjustment feature not supported
puA1920-30um Color Adjustment feature not supported
puA2500-14uc Color Adjustment feature not supported
puA2500-14um Color Adjustment feature not supported

Sample Code#

ace classic/U/L GigE Cameras#

// Enable the Color Adjustment feature
camera.ColorAdjustmentEnable.SetValue(true);
// Select red as the color to adjust
camera.ColorAdjustmentSelector.SetValue(ColorAdjustmentSelector_Red);
// Enter a floating point value for the red hue
camera.ColorAdjustmentHue.SetValue(-1.125);
// Enter a floating point value for the red saturation
camera.ColorAdjustmentSaturation.SetValue(1.375);
// Select cyan as the color to adjust
camera.ColorAdjustmentSelector.SetValue(ColorAdjustmentSelector_Cyan);
// Enter an integer value for the cyan hue
camera.ColorAdjustmentHueRaw.SetValue(-36);
// Enter an integer value for the cyan saturation
camera.ColorAdjustmentSaturationRaw.SetValue(176);
INodeMap& nodemap = camera.GetNodeMap();
// Enable the Color Adjustment feature
CBooleanPtr(nodemap.GetNode("ColorAdjustmentEnable"))->SetValue(true);
// Select red as the color to adjust
CEnumerationPtr(nodemap.GetNode("ColorAdjustmentSelector"))->FromString("Red");
// Enter a floating point value for the red hue
CFloatPtr(nodemap.GetNode("ColorAdjustmentHue"))->SetValue(-1.125);
// Enter a floating point value for the red saturation
CFloatPtr(nodemap.GetNode("ColorAdjustmentSaturation"))->SetValue(1.375);
// Select cyan as the color to adjust
CEnumerationPtr(nodemap.GetNode("ColorAdjustmentSelector"))->FromString("Cyan");
// Enter an integer value for the cyan hue
CIntegerPtr(nodemap.GetNode("ColorAdjustmentHueRaw"))->SetValue(-36);
// Enter an integer value for the cyan saturation
CIntegerPtr(nodemap.GetNode("ColorAdjustmentSaturationRaw"))->SetValue(176);
INodeMap& nodemap = camera.GetNodeMap();
// Enable the Color Adjustment feature
CBooleanParameter(nodemap, "ColorAdjustmentEnable").SetValue(true);
// Select red as the color to adjust
CEnumParameter(nodemap, "ColorAdjustmentSelector").SetValue("Red");
// Enter a floating point value for the red hue
CFloatParameter(nodemap, "ColorAdjustmentHue").SetValue(-1.125);
// Enter a floating point value for the red saturation
CFloatParameter(nodemap, "ColorAdjustmentSaturation").SetValue(1.375);
// Select cyan as the color to adjust
CEnumParameter(nodemap, "ColorAdjustmentSelector").SetValue("Cyan");
// Enter an integer value for the cyan hue
CIntegerParameter(nodemap, "ColorAdjustmentHueRaw").SetValue(-36);
// Enter an integer value for the cyan saturation
CIntegerParameter(nodemap, "ColorAdjustmentSaturationRaw").SetValue(176);
// Enable the Color Adjustment feature
camera.Parameters[PLCamera.ColorAdjustmentEnable].SetValue(true);
// Select red as the color to adjust
camera.Parameters[PLCamera.ColorAdjustmentSelector].SetValue(PLCamera.ColorAdjustmentSelector.Red);
// Enter a floating point value for the red hue
camera.Parameters[PLCamera.ColorAdjustmentHue].SetValue(-1.125);
// Enter a floating point value for the red saturation
camera.Parameters[PLCamera.ColorAdjustmentSaturation].SetValue(1.375);
// Select cyan as the color to adjust
camera.Parameters[PLCamera.ColorAdjustmentSelector].SetValue(PLCamera.ColorAdjustmentSelector.Cyan);
// Enter an integer value for the cyan hue
camera.Parameters[PLCamera.ColorAdjustmentHueRaw].SetValue(-36);
// Enter an integer value for the cyan saturation
camera.Parameters[PLCamera.ColorAdjustmentSaturationRaw].SetValue(176);
// Enable the Color Adjustment feature
Pylon.DeviceSetBooleanFeature(hdev, "ColorAdjustmentEnable", true);
// Select red as the color to adjust
Pylon.DeviceFeatureFromString(hdev, "ColorAdjustmentSelector", "Red");
// Enter a floating point value for the red hue
Pylon.DeviceSetFloatFeature(hdev, "ColorAdjustmentHue", -1.125);
// Enter a floating point value for the red saturation
Pylon.DeviceSetFloatFeature(hdev, "ColorAdjustmentSaturation", 1.375);
// Select cyan as the color to adjust
Pylon.DeviceFeatureFromString(hdev, "ColorAdjustmentSelector", "Cyan");
// Enter an integer value for the cyan hue
Pylon.DeviceSetIntegerFeature(hdev, "ColorAdjustmentHueRaw", -36);
// Enter an integer value for the cyan saturation
Pylon.DeviceSetIntegerFeature(hdev, "ColorAdjustmentSaturationRaw", 176);
/* Macro to check for errors */
#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)
GENAPIC_RESULT errRes = GENAPI_E_OK;  /* Return value of pylon methods */
/* Enable the Color Adjustment feature */
errRes = PylonDeviceSetBooleanFeature(hdev, "ColorAdjustmentEnable", 1);
CHECK(errRes);
/* Select red as the color to adjust */
errRes = PylonDeviceFeatureFromString(hdev, "ColorAdjustmentSelector", "Red");
CHECK(errRes);
/* Enter a floating point value for the red hue */
errRes = PylonDeviceSetFloatFeature(hdev, "ColorAdjustmentHue", -1.125);
CHECK(errRes);
/* Enter a floating point value for the red saturation */
errRes = PylonDeviceSetFloatFeature(hdev, "ColorAdjustmentSaturation", 1.375);
CHECK(errRes);
/* Select cyan as the color to adjust */
errRes = PylonDeviceFeatureFromString(hdev, "ColorAdjustmentSelector", "Cyan");
CHECK(errRes);
/* Enter an integer value for the cyan hue */
errRes = PylonDeviceSetIntegerFeature(hdev, "ColorAdjustmentHueRaw", -36);
CHECK(errRes);
/* Enter an integer value for the cyan saturation */
errRes = PylonDeviceSetIntegerFeature(hdev, "ColorAdjustmentSaturationRaw", 176);
CHECK(errRes);

ace 2 and boost Cameras#

// Select red as the color to adjust
camera.BslColorAdjustmentSelector.SetValue(ColorAdjustmentSelector_Red);
// Enter an integer value for the red hue
camera.BslColorAdjustmentHue.SetValue(-1.125);
// Enter an integer value for the red saturation
camera.BslColorAdjustmentSaturation.SetValue(1.375);
INodeMap& nodemap = camera.GetNodeMap();
// Select red as the color to adjust
CEnumerationPtr(nodemap.GetNode("BslColorAdjustmentSelector"))->FromString("Red");
// Enter an integer value for the red hue
CFloatPtr(nodemap.GetNode("BslColorAdjustmentHue"))->SetValue(-1.125);
// Enter an integer value for the red saturation
CFloatPtr(nodemap.GetNode("BslColorAdjustmentSaturation"))->SetValue(1.375);
INodeMap& nodemap = camera.GetNodeMap();
// Select red as the color to adjust
CEnumParameter(nodemap, "BslColorAdjustmentSelector").SetValue("Red");
// Enter an integer value for the red hue
CFloatParameter(nodemap, "BslColorAdjustmentHue").SetValue(-1.125);
// Enter an integer value for the red saturation
CFloatParameter(nodemap, "BslColorAdjustmentSaturation").SetValue(1.375);
// Select red as the color to adjust
camera.Parameters[PLCamera.BslColorAdjustmentSelector].SetValue(PLCamera.ColorAdjustmentSelector.Red);
// Enter an integer value for the red hue
camera.Parameters[PLCamera.BslColorAdjustmentHue].SetValue(-1.125);
// Enter an integer value for the red saturation
camera.Parameters[PLCamera.BslColorAdjustmentSaturation].SetValue(1.375);
// Select red as the color to adjust
Pylon.DeviceFeatureFromString(hdev, "BslColorAdjustmentSelector", "Red");
// Enter an integer value for the red hue
Pylon.DeviceSetFloatFeature(hdev, "BslColorAdjustmentHue", -1.125);
// Enter an integer value for the red saturation
Pylon.DeviceSetFloatFeature(hdev, "BslColorAdjustmentSaturation", 1.375);
/* Macro to check for errors */
#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)
GENAPIC_RESULT errRes = GENAPI_E_OK;  /* Return value of pylon methods */
/* Select red as the color to adjust */
errRes = PylonDeviceFeatureFromString(hdev, "BslColorAdjustmentSelector", "Red");
CHECK(errRes);
/* Enter an integer value for the red hue */
errRes = PylonDeviceSetFloatFeature(hdev, "BslColorAdjustmentHue", -1.125);
CHECK(errRes);
/* Enter an integer value for the red saturation */
errRes = PylonDeviceSetFloatFeature(hdev, "BslColorAdjustmentSaturation", 1.375);
CHECK(errRes);

Other Cameras#

// Select red as the color to adjust
camera.ColorAdjustmentSelector.SetValue(ColorAdjustmentSelector_Red);
// Enter an integer value for the red hue
camera.ColorAdjustmentHue.SetValue(-1.125);
// Enter an integer value for the red saturation
camera.ColorAdjustmentSaturation.SetValue(1.375);
INodeMap& nodemap = camera.GetNodeMap();
// Select red as the color to adjust
CEnumerationPtr(nodemap.GetNode("ColorAdjustmentSelector"))->FromString("Red");
// Enter an integer value for the red hue
CFloatPtr(nodemap.GetNode("ColorAdjustmentHue"))->SetValue(-1.125);
// Enter an integer value for the red saturation
CFloatPtr(nodemap.GetNode("ColorAdjustmentSaturation"))->SetValue(1.375);
INodeMap& nodemap = camera.GetNodeMap();
// Select red as the color to adjust
CEnumParameter(nodemap, "ColorAdjustmentSelector").SetValue("Red");
// Enter an integer value for the red hue
CFloatParameter(nodemap, "ColorAdjustmentHue").SetValue(-1.125);
// Enter an integer value for the red saturation
CFloatParameter(nodemap, "ColorAdjustmentSaturation").SetValue(1.375);
// Select red as the color to adjust
camera.Parameters[PLCamera.ColorAdjustmentSelector].SetValue(PLCamera.ColorAdjustmentSelector.Red);
// Enter an integer value for the red hue
camera.Parameters[PLCamera.ColorAdjustmentHue].SetValue(-1.125);
// Enter an integer value for the red saturation
camera.Parameters[PLCamera.ColorAdjustmentSaturation].SetValue(1.375);
// Select red as the color to adjust
Pylon.DeviceFeatureFromString(hdev, "ColorAdjustmentSelector", "Red");
// Enter an integer value for the red hue
Pylon.DeviceSetFloatFeature(hdev, "ColorAdjustmentHue", -1.125);
// Enter an integer value for the red saturation
Pylon.DeviceSetFloatFeature(hdev, "ColorAdjustmentSaturation", 1.375);
/* Macro to check for errors */
#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)
GENAPIC_RESULT errRes = GENAPI_E_OK;  /* Return value of pylon methods */
/* Select red as the color to adjust */
errRes = PylonDeviceFeatureFromString(hdev, "ColorAdjustmentSelector", "Red");
CHECK(errRes);
/* Enter an integer value for the red hue */
errRes = PylonDeviceSetFloatFeature(hdev, "ColorAdjustmentHue", -1.125);
CHECK(errRes);
/* Enter an integer value for the red saturation */
errRes = PylonDeviceSetFloatFeature(hdev, "ColorAdjustmentSaturation", 1.375);
CHECK(errRes);

You can also use the pylon Viewer to easily set the parameters.