Line Noise Reduction#
기능 사용#
작동 방식#
이미지를 확인할 때 "라인 노이즈"라고도 하는 원치 않는 수평 스트라이프가 나타날 수 있습니다.
일반적으로 Line Noise Reduction 기능을 활성화하면 이 현상이 크게 줄어듭니다:
Line Noise Reduction 활성화#
Line noise reduction을 활성화하려면:
- 파라미터를 원하는
BslLineNoiseReductionEnable파라메터true. - 파라미터를 원하는
BslLineNoiseReduction파라미터를 0.0에서 1.0 사이의 값으로 설정합니다.
적용할 Line noise reduction의 양을 조정합니다. 값이 높을수록 이미지에 보이는 라인 노이즈(수평 스트라이프)가 줄어듭니다. 단, 지나치게 높은 값은 이미지 정보 손실을 초래할 수 있습니다.
샘플 코드#
/* 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 line noise reduction */
errRes = PylonDeviceSetBooleanFeature(hdev, "BslLineNoiseReductionEnable", 1);
CHECK(errRes);
/* Adjust the amount of line noise reduction */
errRes = PylonDeviceSetFloatFeature(hdev, "BslLineNoiseReduction", 0.5);
CHECK(errRes);
pylon Viewer를 사용하여 파라미터를 손쉽게 설정할 수도 있습니다.