Line Noise Reduction#
機能を使用する#
仕組み#
When looking at your images, you may notice unwanted horizontal stripes, also known as "line noise".
Usually, enabling the Line Noise Reduction feature should significantly reduce this effect:
Enabling Line Noise Reduction#
To enable line noise reduction:
- パラメーターを
BslLineNoiseReductionEnable
parameter totrue
. - パラメーターを
BslLineNoiseReduction
parameter to a value between 0.0 and 1.0.
This adjusts the amount of line noise reduction to be applied. The higher the value, the less line noise (horizontal stripes) will be visible in your images. However, excessively high values may result in loss of image information.
サンプルコード#
/* 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を使用して、パラメーターを簡単に設定することもできます。