コンテンツにスキップ

Flare Removal (BCON for MIPI)#

When a camera is pointed at a strong light source, the resulting photograph may contain lens flare artifacts. The Flare Removal auto function allows you to remove these artifacts.

機能を使用する#

To enable or disable flare removal, set the BslFlareRemovalAuto parameter to one of the following operating modes:

  • Continuous: The camera removes lens flare artifacts continuously while images are being acquired.
  • Off: Disables the Flare Removal auto function.

サンプルコード#

// Enable Flare Removal by setting the operating mode to Continuous
camera.BslFlareRemovalAuto.SetValue(BslFlareRemovalAuto_Continuous);
INodeMap& nodemap = camera.GetNodeMap();
// Enable Balance White Auto by setting the operating mode to Continuous
CEnumParameter(nodemap, "BslFlareRemovalAuto").SetValue("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 */
double maxUpperLimit = 0;
/* Enable Balance White Auto by setting the operating mode to Continuous */
errRes = PylonDeviceFeatureFromString(hdev, "BslFlareRemovalAuto", "Continuous");
CHECK(errRes);

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