Test Patterns (dart E)#
Test patterns는 유지보수 및 고장 진단용으로 사용할 수 있습니다. 이 패턴들은 카메라 자체에서 생성되므로, 카메라의 광학계와 이미지 센서는 생성 과정에 관여하지 않습니다.
기능 사용법#
Test Patterns 표시하기#
테스트 패턴을 표시하려면:
- 매개변수를 원하는 테스트 이미지로 설정하여
TestPatternTest Patterns를 선택합니다. - 선택한 테스트 패턴을 표시하려면 최소한 하나의 이미지를 취득하십시오. 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.) */
You can also use the pylon Viewer to easily set the parameters.