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

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"

您也可以使用 pylon Viewer 來輕鬆設定參數。