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);
您还可以使用 pylon Viewer 轻松设置参数。