Balance White Reset#
如果您的调节未达到理想效果,并且您想快速返回到原始设置,则此功能特别有用。
该功能的使用#
To reset all white balance adjustments, execute the BalanceWhiteReset
command.
即: BalanceRatio
parameter values for all color channels (red, green, blue) are reset to the settings defined by the Light Source Preset feature.
示例代码#
/* 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 */
/* Reset all white balance adjustments */
errRes = PylonDeviceExecuteCommandFeature(hdev, "BalanceWhiteReset");
CHECK(errRes);
您也可以使用 pylon Viewer 轻松设置参数。