コンテンツにスキップ

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を使用して、パラメーターを簡単に設定することもできます。