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 轻松设置参数。