跳转到内容

Balance White Reset#

相机的 Balance White Reset 功能会重置所有白平衡调整。

如果您的调节未达到理想效果,并且您想快速返回到原始设置,则此功能特别有用。

该功能的使用#

To reset all white balance adjustments, execute the BalanceWhiteReset command.

The BalanceRatio parameter values for all color channels (red, green, blue) are reset to the settings defined by the Light Source Preset feature.

示例代码#

// 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()

您也可以使用 pylon Viewer 轻松设置参数。