Pixel Correction Beyond#
它可以校正強度值明顯高於或低於相鄰像素的像素。內部閾值決定何時校正像素。
"動態" 意指針對每個擷取的影像個別計算缺陷像素校正。
使用此功能#
啟用 Pixel Correction Beyond#
若要啟用 Pixel Correction Beyond:
- 將
BslPixelCorrectionBeyondEnable參數設為true. - 將
BslPixelCorrectionBeyondparameter 設為 0.0 到 1.0 之間的數值。
這會調整要套用的動態缺陷像素校正量。較高的值表示影像中可見的缺陷像素較少。然而,過高的值可能會導致影像資訊遺失。
範例程式碼#
/* 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 來輕鬆設定參數。