Pixel Correction Beyond#
이 기능은 주변 화소에 비해 현저하게 높거나 낮은 명도 값을 가진 화소를 보정합니다. 내부 임계값에 따라 화소 보정 여부가 결정됩니다.
"동적"이란 획득한 각 이미지마다 결함 화소 보정이 개별적으로 계산된다는 의미입니다.
기능 사용#
Pixel Correction Beyond 활성화#
Pixel Correction Beyond를 활성화하려면:
- 파라미터를 원하는
BslPixelCorrectionBeyondEnable파라메터true. - 파라미터를 원하는
BslPixelCorrectionBeyond파라미터를 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를 사용하여 파라미터를 손쉽게 설정할 수도 있습니다.