跳至內容
測試伺服器
開發伺服器

Conversion Gain Mode#

Conversion Gain Mode camera feature 讓您可以切換不同的增益模式,以便在微光環境中獲得更好的效能,或在強光條件下獲得更高的動態範圍。

若要手動調整增益,請使用 Gain 功能。若要自動調整增益,請使用 Gain Auto 功能。

使用功能#

若要啟用 conversion gain mode,請將 BslConversionGainMode 參數設定為以下值之一:

  • High:啟用 High Conversion Gain (HCG) 模式。
    HCG 有助於改善微光條件下的 Quality。它能提高靈敏度並降低讀取雜訊,進而改善訊噪比,但會降低動態範圍。
  • Low:啟用 Low Conversion Gain (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"

您也可以 use the pylon Viewer 來輕鬆設定參數。