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

フレア除去 (dart E)#

カメラが強い光源に向けられている場合、生成される写真にはレンズフレアのアーティファクトが含まれる場合があります。フレア除去オートファンクションを使用すると、これらのアーティファクトを除去できます。

機能を使用する#

フレア除去を有効または無効にするには、次を設定します: BslFlareRemovalAuto パラメーターを次のいずれかの動作モードに設定します。

  • Continuous:画像の取得中、カメラは継続的にレンズフレアアーティファクトを除去します。
  • Off:フレア除去の自動機能を無効にします。

サンプルコード#

// Enable Flare Removal by setting the operating mode to Continuous
camera.BslFlareRemovalAuto.SetValue(BslFlareRemovalAuto_Continuous);
INodeMap& nodemap = camera.GetNodeMap();
// Enable Flare Removal by setting the operating mode to Continuous
CEnumParameter(nodemap, "BslFlareRemovalAuto").SetValue("Continuous");
// Enable Flare Removal by setting the operating mode to Continuous
camera.Parameters[PLCamera.BslFlareRemovalAuto].SetValue(PLCamera.BslFlareRemovalAuto.Continuous);
/* 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 */
/* Enable Flare Removal by setting the operating mode to Continuous */
errRes = PylonDeviceFeatureFromString(hdev, "BslFlareRemovalAuto", "Continuous");
CHECK(errRes);
# Enable Flare Removal by setting the operating mode to Continuous
camera.BslFlareRemovalAuto.Value = "Continuous"

pylon Viewerを使用して、パラメータを簡単に設定することもできます。