Line Noise Reduction#
该功能的使用#
运作原理#
在查看图像时,您可能会注意到不希望出现的水平条纹,这也称为“行噪声”。
通常,启用 Line Noise Reduction 功能应该会显著减少这种影响:
启用 Line Noise Reduction#
要启用行噪声减弱:
- 设置
BslLineNoiseReductionEnable参数至true. - 设置
BslLineNoiseReduction将参数设置为 0.0 到 1.0 之间的值。
这会调整要应用的行噪声减弱量。值越高,图像中可见的行噪声(水平条纹)就越少。但是,过高的值可能会导致图像信息丢失。
示例代码#
/* 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 轻松设置参数。