跳至內容
測試伺服器
開發伺服器

Balance White#

「Balance White 」重設相機功能會將所有白平衡調整重設為預設值。

若您的調整未達到預期效果,且希望迅速恢復至原始設定,此功能將特別實用。

使用功能#

若要重設所有白平衡調整,請執行 BalanceWhiteReset 指令。

當 BalanceRatio 所有色彩通道(紅、綠、藍)的參數值將重設為由 Light Source Preset 功能。

範例程式碼#

// Reset all white balance adjustments
camera.BalanceWhiteReset.Execute();
INodeMap& nodemap = camera.GetNodeMap();
// Reset all white balance adjustments
CCommandParameter(nodemap, "BalanceWhiteReset").Execute();
// Reset all white balance adjustments
camera.Parameters[PLCamera.BalanceWhiteReset].Execute();
/* 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);
# Reset all white balance adjustments
camera.BalanceWhiteReset.Execute()

您也可以 use the pylon Viewer 來輕鬆設定參數。