콘텐츠로 건너뛰기
STAGING SERVER
DEVELOPMENT SERVER

Test Patterns (dart E)#

Test Patterns camera feature를 사용하면 카메라의 기본 기능과 이미지 전송 기능을 확인할 수 있습니다.

Test patterns는 유지보수 및 고장 진단용으로 사용할 수 있습니다. 이 패턴들은 카메라 자체에서 생성되므로, 카메라의 광학계와 이미지 센서는 생성 과정에 관여하지 않습니다.

기능 사용법#

Test Patterns 표시하기#

테스트 패턴을 표시하려면:

  1. 매개변수를 원하는 테스트 이미지로 설정하여 TestPattern Test Patterns를 선택합니다.
  2. 선택한 테스트 패턴을 표시하려면 최소한 하나의 이미지를 취득하십시오. pylon Viewer에서 테스트 패턴을 표시하려면 툴바의 단일 또는 연속 취득 버튼을 클릭하십시오.

샘플 코드#

// Select test image 1
camera.TestPattern.SetValue(TestImageSelector_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.)
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.)
// Select test image 1
camera.Parameters[PLCamera.TestPattern].SetValue(PLCamera.TestImageSelector.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.) */
# Select test image 1
camera.TestPattern.Value = "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.) */

You can also use the pylon Viewer to easily set the parameters.