Skip to content

Saturation#

The Saturation camera feature allows you to adjust the appearance of all colors in your images in a single step.

Using the Feature#

Adjusting the Saturation#

Adjusting the saturation changes the colorfulness (intensity) of the colors. A higher saturation, for example, makes colors easier to distinguish.

To adjust the saturation, enter a value for the BslSaturation parameter. By default, the parameter is set to 1 (normal saturation).

Lower parameter values result in more muted colors that are closer to gray. Higher parameter values result in more vivid, vibrant colors.

Sample Code#

// Set the Saturation parameter to 1.4
camera.BslSaturation.SetValue(1.4);
INodeMap& nodemap = camera.GetNodeMap();
// Set the Saturation parameter to 1.4
CFloatParameter(nodemap, "BslSaturation").SetValue(1.4);
// Set the Saturation parameter to 1.4
camera.Parameters[PLCamera.BslSaturation].SetValue(1.4);
/* 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 */
/* Set the Saturation parameter to 1.4 */
errRes = PylonDeviceSetFloatFeature(hdev, "BslSaturation", 1.4);
CHECK(errRes);
# Set the Saturation parameter to 1.4
camera.BslSaturation.Value = 1.4

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