コンテンツにスキップ
ステージングサーバー
開発サーバー

Balance White Reset#

Balance White Resetカメラ機能は、ホワイトバランスの調整をすべてリセットします。

これは、行った調整で思うような効果を得られず、すばやく元の設定に戻したい場合に特に有用です。

機能を使用する#

ホワイトバランスのすべての調整をリセットするには、次の操作を実行します。 BalanceWhiteReset コマンド。

イメージ BalanceRatio すべてのカラーチャンネル(赤、緑、青)のパラメータ値が、次で定義された設定にリセットされます: 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を使用して、パラメーターを簡単に設定することもできます。