콘텐츠로 건너뛰기
STAGING SERVER
DEVELOPMENT SERVER

Pixel Correction Beyond#

Pixel Correction Beyond camera feature는 이미지의 결함 픽셀을 동적으로 보정합니다.

이 기능은 주변 픽셀에 비해 밝기 값이 현저히 높거나 낮은 픽셀을 보정합니다. 내부 임계값은 픽셀 보정 시점을 정의합니다.

"동적(Dynamic)"이란 결함 픽셀 보정이 획득된 각 이미지마저 개별적으로 계산된다는 것을 의미합니다.

기능 사용법#

Pixel Correction Beyond 활성화#

Pixel Correction Beyond를 활성화하려면:

  1. 다음 값 중 하나로 BslPixelCorrectionBeyondEnable 매개변수: true.
  2. 다음 값 중 하나로 BslPixelCorrectionBeyond parameter를 0.0에서 1.0 사이의 값으로 설정합니다.
    이 설정은 적용할 동적 결함 픽셀 보정의 강도를 조정합니다. 값이 높을수록 이미지에서 결함 픽셀이 덜 보이게 됩니다. 단, 지나치게 높은 값은 이미지 정보 손실을 초래할 수 있습니다.

샘플 코드#

// Enable dynamic user defect pixel correction
camera.BslPixelCorrectionBeyondEnable.SetValue(true);
// Adjust the amount of defect pixel correction to be applied
camera.BslPixelCorrectionBeyond.SetValue(0.5);
INodeMap& nodemap = camera.GetNodeMap();
// Enable dynamic user defect pixel correction
CBooleanParameter(nodemap, "BslPixelCorrectionBeyondEnable").SetValue(true);
// Adjust the amount of defect pixel correction to be applied
CFloatParameter(nodemap, "BslPixelCorrectionBeyond").SetValue(0.5);
// Enable dynamic user defect pixel correction
camera.Parameters[PLCamera.BslPixelCorrectionBeyondEnable].SetValue(true);
// Adjust the amount of defect pixel correction to be applied
camera.Parameters[PLCamera.BslPixelCorrectionBeyond].SetValue(0.5);
/* 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);
# Enable dynamic user defect pixel correction
camera.BslPixelCorrectionBeyondEnable.Value = True
# Adjust the amount of defect pixel correction to be applied
camera.BslPixelCorrectionBeyond.Value = 0.5

또한 pylon Viewer를 사용하여 파라미터를 손쉽게 설정할 수 있습니다.