跳转到内容
STAGING SERVER
DEVELOPMENT SERVER

Line Noise Reduction#

借助 Line Noise Reduction 相机功能,您可以减少图像中的水平条纹。

该功能的使用#

运作原理#

在查看图像时,您可能会注意到不希望出现的水平条纹,这也称为“行噪声”。

通常,启用 Line Noise Reduction 功能应该会显著减少这种影响:

已禁用行噪声减弱已启用行噪声减弱

启用 Line Noise Reduction#

要启用行噪声减弱:

  1. 设置 BslLineNoiseReductionEnable 参数至 true.
  2. 设置 BslLineNoiseReduction 将参数设置为 0.0 到 1.0 之间的值。
    这会调整要应用的行噪声减弱量。值越高,图像中可见的行噪声(水平条纹)就越少。但是,过高的值可能会导致图像信息丢失。

示例代码#

// Enable line noise reduction
camera.BslLineNoiseReductionEnable.SetValue(true);
// Adjust the amount of line noise reduction
camera.BslLineNoiseReduction.SetValue(0.5);
INodeMap& nodemap = camera.GetNodeMap();
// Enable line noise reduction
CBooleanParameter(nodemap, "BslLineNoiseReductionEnable").SetValue(true);
// Adjust the amount of line noise reduction
CFloatParameter(nodemap, "BslLineNoiseReduction").SetValue(0.5);
// Enable line noise reduction
camera.Parameters[PLCamera.BslLineNoiseReductionEnable].SetValue(true);
// Adjust the amount of line noise reduction
camera.Parameters[PLCamera.BslLineNoiseReduction].SetValue(0.5);
/* 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);
# Enable line noise reduction
camera.BslLineNoiseReductionEnable.Value = True
# Adjust the amount of line noise reduction
camera.BslLineNoiseReduction.Value = 0.5

您也可以使用 pylon Viewer 轻松设置参数。