跳转到内容

Pixel Correction Beyond#

The Pixel Correction Beyond camera feature dynamically corrects defective pixels in your images.

It corrects pixels that have significantly higher or lower intensity values than their neighboring pixels. An internal threshold value defines when a pixel is corrected.

"Dynamic" means that the defect pixel correction is calculated individually for each acquired image.

该功能的使用#

Enabling Pixel Correction Beyond#

To enable Pixel Correction Beyond:

  1. 设置 BslPixelCorrectionBeyondEnable parameter to true.
  2. 设置 BslPixelCorrectionBeyond parameter to a value between 0.0 and 1.0.
    This adjusts the amount of dynamic defect pixel correction to be applied. Higher values mean less defect pixels will be visible in your images. However, excessively high values may result in loss of image information.

示例代码#

// Enable dynamic user defect pixel correction
camera.BslPixelCorrectionBeyondEnable.SetValue(true);
// Adjust the amount of defect pixel correction to be applied
camera.BslPixelCorrectionBeyond.SetValue(0.5);
INodeMap& nodemap = camera.GetNodeMap();
// Enable dynamic user defect pixel correction
CBooleanParameter(nodemap, "BslPixelCorrectionBeyondEnable").SetValue(true);
// Adjust the amount of defect pixel correction to be applied
CFloatParameter(nodemap, "BslPixelCorrectionBeyond").SetValue(0.5);
// Enable dynamic user defect pixel correction
camera.Parameters[PLCamera.BslPixelCorrectionBeyondEnable].SetValue(true);
// Adjust the amount of defect pixel correction to be applied
camera.Parameters[PLCamera.BslPixelCorrectionBeyond].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 dynamic user defect pixel correction */
errRes = PylonDeviceSetBooleanFeature(hdev, "BslPixelCorrectionBeyondEnable", 1);
CHECK(errRes);
/* Adjust the amount of defect pixel correction to be applied */
errRes = PylonDeviceSetFloatFeature(hdev, "BslPixelCorrectionBeyond", 0.5);
CHECK(errRes);
# Enable dynamic user defect pixel correction
camera.BslPixelCorrectionBeyondEnable.Value = True
# Adjust the amount of defect pixel correction to be applied
camera.BslPixelCorrectionBeyond.Value = 0.5

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