Pixel Correction Beyond#
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:
- 设置
BslPixelCorrectionBeyondEnable
parameter totrue
. - 设置
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.
示例代码#
/* 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);
您也可以使用 pylon Viewer 轻松设置参数。