Line Noise Reduction#
Using the Feature#
How It Works#
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:
- Set the
- Set the
BslLineNoiseReductionparameter 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);
You can also use the pylon Viewer to easily set the parameters.