コンテンツにスキップ

Conversion Gain Mode#

The Conversion Gain Mode camera feature allows you to switch between different gain modes allowing a better performance in low-light environments or a higher dynamic range in bright light conditions.

To adjust the gain manually, use the Gain feature. To adjust the gain automatically, use the Gain Auto feature.

機能を使用する#

To enable the conversion gain mode, set the BslConversionGainMode parameter to one of the following values:

  • High: Enables the High Conversion Gain (HCG) mode.
    HCG helps to improve image quality in low light conditions. The sensitivity is increased and the readout noise reduced, which results in an improved signal-to-noise ratio, but a lower dynamic range.
  • Low: Enables the Low Conversion Gain (LCG) mode.
    LCG is recommended for normal to bright light conditions. The saturation capacity is increased and the dynamic range is higher.

サンプルコード#

// 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を使用して、パラメーターを簡単に設定することもできます。