Gain Auto(BCON for MIPI)#
Gain AutoとExposure Autoを同時に使用する場合は、Auto Function Profile機能を使用して、両方の効果のバランスを調整する方法を指定します。
ゲインを手動で調整するには、Gain機能を使用します。
機能を使用する#
Gain Autoの有効化/無効化#
Gain Auto自動機能を有効または無効にするには、GainAuto
パラメーターを次のいずれかの動作モードに設定します:- Continuous:カメラは、画像の取得中にゲインを連続的に調整します。-
Off
:Gain Auto自動機能を無効にします。ゲインは、自動調整または手動調整の結果として最後に得られた値のままになります。
情報
- daA2500-60mcカメラでは、Gain Autoを有効または無効にすると、Exposure Autoも有効または無効になります。
- カメラが画像を連続的にキャプチャしている場合、オートファンクションは短い遅延を伴って有効になります。最初の何枚かの画像は、オートファンクションの影響を受けない場合があります。
サンプルコード#
// Enable Gain Auto by setting the operating mode to Continuous
camera.GainAuto.SetValue(GainAuto_Continuous);
// Enable Gain Auto by setting the operating mode to Continuous
CEnumParameter(nodemap, "GainAuto").SetValue("Continuous");
/* 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 */
/* Enable Gain Auto by setting the operating mode to Continuous */
errRes = PylonDeviceFeatureFromString(hdev, "GainAuto", "Continuous");
CHECK(errRes);
pylonViewerアを使用して、パラメーターを簡単に設定することもできます。