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.
Using the Feature#
Enabling Pixel Correction Beyond#
To enable Pixel Correction Beyond:
- Set the
BslPixelCorrectionBeyondEnable
parameter totrue
. - Set the
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.
Sample Code#
/* 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);
You can also use the pylon Viewer to easily set the parameters.