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を使用して、パラメーターを簡単に設定することもできます。