Test Patterns (dart E)#
Test patterns는 유지 관리 및 고장 진단 목적으로 사용할 수 있습니다. 이 패턴들은 카메라 자체에서 생성되므로, 카메라의 광학계와 이미지 센서는 생성 과정에 관여하지 않습니다.
기능 사용#
Test Patterns 표시#
테스트 패턴을 표시하려면:
- 다음 항목을 설정하여 테스트 패턴을 선택합니다.
TestPattern원하는 테스트 이미지로 parameter를 설정합니다. - 선택한 테스트 패턴을 표시하려면 이미지를 하나 이상 획득하십시오. pylon Viewer에서 테스트 패턴을 표시하려면 도구 모음에서 단일 촬영 또는 연속 촬영 버튼을 클릭하십시오.
샘플 코드#
INodeMap& nodemap = camera.GetNodeMap();
// Select test image 1
CEnumParameter(nodemap, "TestPattern").SetValue("Testimage1");
// Acquire images to display the selected test image
// ...
// (Insert your own image grabbing routine here.
// For example, the InstantCamera class provides the StartGrabbing method.)
/* 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 */
/* Select test image 1 */
errRes = PylonDeviceFeatureFromString(hdev, "TestPattern", "Testimage1");
CHECK(errRes);
/* Acquire images to display the selected test image */
/* ... */
/* (Insert your own image grabbing routine here. */
/* For example, the InstantCamera class provides the StartGrabbing method.) */
/* 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 */
/* Select test image 1 */
errRes = PylonDeviceFeatureFromString(hdev, "TestPattern", "Testimage1");
CHECK(errRes);
/* Acquire images to display the selected test image */
/* ... */
/* (Insert your own image grabbing routine here. */
/* For example, the InstantCamera class provides the StartGrabbing method.) */
pylon Viewer를 사용하여 매개변수를 간편하게 설정할 수도 있습니다.