Processed Raw Enable#
정보
Processed Raw Enable 기능은 다음 카메라 모델에서만 지원되며 필수적으로 요구됩니다: aca1280-60gc, aca1300-60gc, aca1600-60gc, aca1920-25gc, aca2000-50gc, aca2040-25gc, aca2500-14gc, aca3800-10gc
기능 사용#
Processed Raw Enable 활성화#
Processed Raw Enable 기능은 다음 조건이 모두 충족되는 경우에만 활성화해야 합니다.
- Bayer Pixel Format을 구성했습니다.
- Color Transformation 기능, Color Adjustment 기능 또는 둘 다를 사용하려고 합니다.
그 외의 경우에는 이 기능을 활성화하지 마십시오. 그렇지 않으면 이미지 품질이 저하될 수 있습니다.
Processed Raw Enable 기능을 활성화하려면:
- Pixel Format을 Bayer 12와 같은 Bayer Pixel Format으로 설정합니다.
- 파라미터를 원하는
ProcessedRawEnable파라메터true.
작동 방식#
Color Transformation 및 Color Adjustment 기능이 작동하려면 RGB 삼원색(triplet)으로 저장된 이미지 데이터가 필요합니다. "raw" Bayer Pixel Format을 사용하는 경우 일반적으로 RGB 삼원색이 제공되지 않습니다. 대신 각 픽셀은 빨간색, 초록색 또는 파란색 데이터 중 하나만 제공합니다. RGB 삼원색을 계산하려면 원본 이미지 데이터에 디모자이싱(demosaicing) 알고리즘을 수행해야 합니다. 즉, 원본 이미지 데이터를 처리해야 합니다.
Processed Raw Enable이 활성화되면 원본 Bayer 픽셀 데이터가 디모자이싱되어 RGB 데이터로 변환되므로 Color Transformation 및 Color Adjustment 기능이 작동할 수 있습니다. 그 후 수정된 픽셀 데이터가 다시 Bayer 픽셀 데이터로 재변환됩니다. 최종 Bayer 데이터 출력은 더 이상 "raw" 출력이 아니라 "processed raw" 출력입니다.
Processed Raw Enable이 비활성화되고 Bayer Pixel Format이 사용되는 경우 Color Transformation 및 Color Adjustment 기능을 사용할 수 있지만 아무런 효과가 없습니다.
샘플 코드#
/* 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 */
/* Set the pixel format to Bayer BG8 */
errRes = PylonDeviceFeatureFromString(hdev, "PixelFormat", "BayerBG8");
CHECK(errRes);
/* Enable Processed Raw Enable */
errRes = PylonDeviceSetBooleanFeature(hdev, "ProcessedRawEnable", 1);
CHECK(errRes);
pylon Viewer를 사용하여 파라미터를 손쉽게 설정할 수도 있습니다.