Test Patterns (dart E)#
テストパターンは、メンテナンスおよび障害診断に使用できます。これらはカメラ自体によって生成されます。つまり、カメラの光学部品とイメージセンサーは生成に関与しません。
機能を使用する#
Test Patternsの表示#
テストパターンを表示するには、次の手順に従います。
- 以下を設定して、テストパターンを選択します
TestPatternパラメータを目的のテスト画像に設定します。 - 選択したテストパターンを表示するには、少なくとも1枚の画像を取り込んでください。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 を使用してパラメータを簡単に設定することもできます。