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

Conversion Gain Mode#

Conversion Gain Mode 攝影機功能讓您能在不同的增益模式之間切換,藉此在低光環境下獲得更佳的表現,或在強光條件下獲得更高的動態範圍。

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

使用功能#

若要啟用轉換增益模式,請將 BslConversionGainMode 參數設定為以下值之一:

  • High: 啟用高轉換增益(HCG)模式。
    HCG有助於在低光照條件下提升影像品質。其靈敏度得以提高,讀出雜訊也隨之降低,從而提升了信噪比,但動態範圍則相對較低。
  • 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"

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