Balance ratio < 1: The intensity of the color is decreased relative to the other two colors. (This is only possible if your camera model supports balance ratio values lower than 1.)
// Set the red intensity to 108.789%camera.BalanceRatioSelector.SetValue(BalanceRatioSelector_Red);camera.BalanceRatioAbs.SetValue(1.08789);// Set the green intensity to 100%camera.BalanceRatioSelector.SetValue(BalanceRatioSelector_Green);camera.BalanceRatioAbs.SetValue(1.0);// Set the blue intensity to 219.678%camera.BalanceRatioSelector.SetValue(BalanceRatioSelector_Blue);camera.BalanceRatioAbs.SetValue(2.19678);
INodeMap&nodemap=camera.GetNodeMap();// Set the red intensity to 108.789%CEnumParameter(nodemap,"BalanceRatioSelector").SetValue("Red");CFloatParameter(nodemap,"BalanceRatioAbs").SetValue(1.08789);// Set the green intensity to 100%CEnumParameter(nodemap,"BalanceRatioSelector").SetValue("Green");CFloatParameter(nodemap,"BalanceRatioAbs").SetValue(1.0);// Set the blue intensity to 219.678%CEnumParameter(nodemap,"BalanceRatioSelector").SetValue("Blue");CFloatParameter(nodemap,"BalanceRatioAbs").SetValue(2.19678);
// Set the red intensity to 108.789%camera.Parameters[PLCamera.BalanceRatioSelector].SetValue(PLCamera.BalanceRatioSelector.Red);camera.Parameters[PLCamera.BalanceRatioAbs].SetValue(1.08789);// Set the green intensity to 100%camera.Parameters[PLCamera.BalanceRatioSelector].SetValue(PLCamera.BalanceRatioSelector.Green);camera.Parameters[PLCamera.BalanceRatioAbs].SetValue(1.0);// Set the blue intensity to 219.678%camera.Parameters[PLCamera.BalanceRatioSelector].SetValue(PLCamera.BalanceRatioSelector.Blue);camera.Parameters[PLCamera.BalanceRatioAbs].SetValue(2.19678);
/* Macro to check for errors */#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)GENAPIC_RESULTerrRes=GENAPI_E_OK;/* Return value of pylon methods *//* Set the red intensity to 108.789% */errRes=PylonDeviceFeatureFromString(hdev,"BalanceRatioSelector","Red");CHECK(errRes);errRes=PylonDeviceSetFloatFeature(hdev,"BalanceRatioAbs",1.08789);CHECK(errRes);/* Set the green intensity to 100% */errRes=PylonDeviceFeatureFromString(hdev,"BalanceRatioSelector","Green");CHECK(errRes);errRes=PylonDeviceSetFloatFeature(hdev,"BalanceRatioAbs",1.0);CHECK(errRes);/* Set the blue intensity to 219.678% */errRes=PylonDeviceFeatureFromString(hdev,"BalanceRatioSelector","Blue");CHECK(errRes);errRes=PylonDeviceSetFloatFeature(hdev,"BalanceRatioAbs",2.19678);CHECK(errRes);
# Set the red intensity to 108.789%camera.BalanceRatioSelector.Value="Red"camera.BalanceRatioAbs.Value=1.08789# Set the green intensity to 100%camera.BalanceRatioSelector.Value="Green"camera.BalanceRatioAbs.Value=1.0# Set the blue intensity to 219.678%camera.BalanceRatioSelector.Value="Blue"camera.BalanceRatioAbs.Value=2.19678
// Set the red intensity to 108.789%camera.BalanceRatioSelector.SetValue(BalanceRatioSelector_Red);camera.BalanceRatio.SetValue(1.08789);// Set the green intensity to 100%camera.BalanceRatioSelector.SetValue(BalanceRatioSelector_Green);camera.BalanceRatio.SetValue(1.0);// Set the blue intensity to 219.678%camera.BalanceRatioSelector.SetValue(BalanceRatioSelector_Blue);camera.BalanceRatio.SetValue(2.19678);
INodeMap&nodemap=camera.GetNodeMap();// Set the red intensity to 108.789%CEnumParameter(nodemap,"BalanceRatioSelector").SetValue("Red");CFloatParameter(nodemap,"BalanceRatio").SetValue(1.08789);// Set the green intensity to 100%CEnumParameter(nodemap,"BalanceRatioSelector").SetValue("Green");CFloatParameter(nodemap,"BalanceRatio").SetValue(1.0);// Set the blue intensity to 219.678%CEnumParameter(nodemap,"BalanceRatioSelector").SetValue("Blue");CFloatParameter(nodemap,"BalanceRatio").SetValue(2.19678);
// Set the red intensity to 108.789%camera.Parameters[PLCamera.BalanceRatioSelector].SetValue(PLCamera.BalanceRatioSelector.Red);camera.Parameters[PLCamera.BalanceRatio].SetValue(1.08789);// Set the green intensity to 100%camera.Parameters[PLCamera.BalanceRatioSelector].SetValue(PLCamera.BalanceRatioSelector.Green);camera.Parameters[PLCamera.BalanceRatio].SetValue(1.0);// Set the blue intensity to 219.678%camera.Parameters[PLCamera.BalanceRatioSelector].SetValue(PLCamera.BalanceRatioSelector.Blue);camera.Parameters[PLCamera.BalanceRatio].SetValue(2.19678);
/* Macro to check for errors */#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)GENAPIC_RESULTerrRes=GENAPI_E_OK;/* Return value of pylon methods *//* Set the red intensity to 108.789% */errRes=PylonDeviceFeatureFromString(hdev,"BalanceRatioSelector","Red");CHECK(errRes);errRes=PylonDeviceSetFloatFeature(hdev,"BalanceRatio",1.08789);CHECK(errRes);/* Set the green intensity to 100% */errRes=PylonDeviceFeatureFromString(hdev,"BalanceRatioSelector","Green");CHECK(errRes);errRes=PylonDeviceSetFloatFeature(hdev,"BalanceRatio",1.0);CHECK(errRes);/* Set the blue intensity to 219.678% */errRes=PylonDeviceFeatureFromString(hdev,"BalanceRatioSelector","Blue");CHECK(errRes);errRes=PylonDeviceSetFloatFeature(hdev,"BalanceRatio",2.19678);CHECK(errRes);
# Set the red intensity to 108.789%camera.BalanceRatioSelector.Value="Red"camera.BalanceRatio.Value=1.08789# Set the green intensity to 100%camera.BalanceRatioSelector.Value="Green"camera.BalanceRatio.Value=1.0# Set the blue intensity to 219.678%camera.BalanceRatioSelector.Value="Blue"camera.BalanceRatio.Value=2.19678