跳转到内容
暂存服务器
开发服务器

Conversion Gain Mode#

通过 Conversion Gain Mode camera feature,您可以在不同的增益模式之间进行切换,从而在低光照环境中获得更好的性能,或在明亮光线条件下获得更高的动态范围。

要手动调整增益,请使用 Gain 功能。要自动调整增益,请使用 Gain Auto 功能。

该功能的使用#

若要启用 conversion gain mode,请将 BslConversionGainMode 参数设置为以下值:

  • High:启用高转换增益 (HCG) 模式。
    HCG 有助于改善低光照条件下的图像 Quality。它提高了灵敏度并降低了读出噪声,从而改善了信噪比,但降低了动态范围。
  • Low:启用低转换增益 (LCG) 模式。
    建议在正常至明亮光线条件下使用 LCG。它提高了饱和容量并提供了更高的动态范围。

示例代码#

// Set the conversion gain mode to High
camera.BslConversionGainMode.SetValue(BslConversionGainMode_High);
INodeMap& nodemap = camera.GetNodeMap();
// Set the conversion gain mode to High
CEnumParameter(nodemap, "BslConversionGainMode").SetValue("High");
// Set the conversion gain mode to High
camera.Parameters[PLCamera.BslConversionGainMode].SetValue(PLCamera.BslConversionGainMode.High);
/* 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 conversion gain mode to High */
errRes = PylonDeviceFeatureFromString(hdev, "BslConversionGainMode", "High");
CHECK(errRes);
# Set the conversion gain mode to High
camera.BslConversionGainMode.Value = "High"

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