Line Noise Reduction#
기능 사용법#
작동 원리#
이미지를 확인할 때 "라인 노이즈"라고도 하는 원치 않는 가로 줄무늬가 나타날 수 있습니다.
일반적으로 Line Noise Reduction 기능을 활성화하면 이 현상이 크게 줄어듭니다.
Line Noise Reduction 활성화#
Line noise reduction을 활성화하려면:
- 다음 값 중 하나로
BslLineNoiseReductionEnable매개변수:true. - 다음 값 중 하나로
BslLineNoiseReductionparameter를 0.0에서 1.0 사이의 값으로 설정합니다.
적용할 line noise reduction의 양을 조절합니다. 값이 높을수록 이미지에 나타나는 line noise(가로 줄무늬)가 줄어듭니다. 단, 지나치게 높은 값을 설정하면 이미지 정보가 손실될 수 있습니다.
샘플 코드#
/* 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를 사용하여 파라미터를 손쉽게 설정할 수 있습니다.