This is especially useful if your adjustments haven't had the desired effect and you want to return quickly to the original settings.
In this topic Hide
To reset all white balance adjustments, execute the BalanceWhiteReset command.
The BalanceRatioAbsBalanceRatio 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
CCommandPtr(nodemap.GetNode("BalanceWhiteReset"))->Execute();
// Reset all white balance adjustments
camera.Parameters[PLCamera.BalanceWhiteReset].Execute();
// Reset all white balance adjustments
Pylon.DeviceExecuteCommandFeature(hdev, "BalanceWhiteReset");
/* 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);
You can also use the pylon Viewer to easily set the parameters.