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

Line Noise Reduction#

Line Noise Reduction camera feature機能を使用すると、画像内の水平方向のノイズ(縞模様)を軽減できます。

機能を使用する#

仕組み#

画像を確認する際、「ラインノイズ」とも呼ばれる不要な水平方向の縞模様が発生している場合があります。

通常、Line Noise Reduction機能を有効にすると、この影響が大幅に軽減されます。

Line noise reduction disabledLine noise reduction enabled

Line Noise Reductionの有効化#

Line noise reductionを有効にするには:

  1. パラメーターを BslLineNoiseReductionEnable パラメータを true.
  2. パラメーターを BslLineNoiseReduction パラメータを0.0から1.0の間の値に設定します。
    これにより、適用されるLine Noise Reductionの強度が調整されます。値が大きいほど、画像内のラインノイズ(水平方向の縞模様)が目立たなくなります。ただし、値を高くしすぎると、画像情報が失われる可能性があります。

サンプルコード#

// Enable line noise reduction
camera.BslLineNoiseReductionEnable.SetValue(true);
// Adjust the amount of line noise reduction
camera.BslLineNoiseReduction.SetValue(0.5);
INodeMap& nodemap = camera.GetNodeMap();
// Enable line noise reduction
CBooleanParameter(nodemap, "BslLineNoiseReductionEnable").SetValue(true);
// Adjust the amount of line noise reduction
CFloatParameter(nodemap, "BslLineNoiseReduction").SetValue(0.5);
// Enable line noise reduction
camera.Parameters[PLCamera.BslLineNoiseReductionEnable].SetValue(true);
// Adjust the amount of line noise reduction
camera.Parameters[PLCamera.BslLineNoiseReduction].SetValue(0.5);
/* 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 line noise reduction */
errRes = PylonDeviceSetBooleanFeature(hdev, "BslLineNoiseReductionEnable", 1);
CHECK(errRes);
/* Adjust the amount of line noise reduction */
errRes = PylonDeviceSetFloatFeature(hdev, "BslLineNoiseReduction", 0.5);
CHECK(errRes);
# Enable line noise reduction
camera.BslLineNoiseReductionEnable.Value = True
# Adjust the amount of line noise reduction
camera.BslLineNoiseReduction.Value = 0.5

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