跳转到内容

Balance White Adjustment Damping#

相机的 Balance White Adjustment Damping功能Balance White Auto 功能已启用的情况下控制相机调节色彩的速度。

该功能的使用#

运作原理#

如果指定了白平衡调整阻尼系数,系统不会立即调整颜色,而是要经过一定的延迟。这种做法在一些情况下非常有用,例如,有助于避免自动功能的自动控制机制被移入或移出相机视野的物体所干扰。

指定阻尼系数#

要指定阻尼系数:

  1. Set the Balance White Auto auto function to Once or Continuous.
  2. Adjust the BalanceWhiteAdjustmentDampingAbs parameter value.
    You can set the parameter in a range from 0.0 to 0.9766. Higher parameter values result in a faster adaptation, i.e., the colors are adjusted more quickly. By default, the factor is set to the maximum value.

示例代码#

// Set balance white adjustment damping to 0.5859
camera.BalanceWhiteAdjustmentDampingAbs.SetValue(0.5859);
INodeMap& nodemap = camera.GetNodeMap();
// Set balance white adjustment damping to 0.5859
CFloatParameter(nodemap, "BalanceWhiteAdjustmentDampingAbs").SetValue(0.5859);
// Set balance white adjustment damping to 0.5859
camera.Parameters[PLCamera.BalanceWhiteAdjustmentDampingAbs].SetValue(0.5859);
/* 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 balance white adjustment damping to 0.5859 */
errRes = PylonDeviceSetFloatFeature(hdev, "BalanceWhiteAdjustmentDampingAbs", 0.5859);
CHECK(errRes);
# Set balance white adjustment damping to 0.5859
camera.BalanceWhiteAdjustmentDampingAbs.Value = 0.5859

您也可以使用 pylon Viewer 轻松设置参数。