Balance White#
如果您進行的調整未達到預期效果,且您希望快速恢復原始設定,這項功能特別有用。
使用此功能#
若要重設所有 white balance 調整,請執行 BalanceWhiteReset 命令。
影像 BalanceRatio 所有顏色通道(紅、綠、藍)的參數值將重設為由 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 來輕鬆設定參數。