Gain Auto (BCON for MIPI)#
Gain AutoとExposure Autoを同時に使用する場合は、Auto Function Profile機能を使用して、両方の効果のバランスを調整する方法を指定します。
ゲインを手動で調整するには、Gain機能を使用します。
機能を使用する#
Gain Autoの有効化/無効化#
To enable or disable the Gain Auto auto function, set the GainAuto
parameter to one of the following operating modes: - Continuous
: The camera adjusts the gain continuously while images are being acquired. - Off
: Disables the Gain Auto auto function. The gain remains at the value resulting from the last automatic or manual adjustment.
情報
- On daA2500-60mc cameras, enabling or disabling Gain Auto also enables or disables 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);
You can also use the pylon Viewer to easily set the parameters.