Line Noise Reduction#
機能を使用する#
仕組み#
画像を確認する際、「ラインノイズ」とも呼ばれる不要な水平方向の縞模様が発生している場合があります。
通常、Line Noise Reduction機能を有効にすると、この影響が大幅に軽減されます。
Line Noise Reductionの有効化#
Line noise reductionを有効にするには:
- パラメーターを
BslLineNoiseReductionEnableパラメータをtrue. - パラメーターを
BslLineNoiseReductionパラメータを0.0から1.0の間の値に設定します。
これにより、適用されるLine Noise Reductionの強度が調整されます。値が大きいほど、画像内のラインノイズ(水平方向の縞模様)が目立たなくなります。ただし、値を高くしすぎると、画像情報が失われる可能性があります。
サンプルコード#
/* 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);
pylon Viewerを使用して、パラメーターを簡単に設定することもできます。