Using a ViDi Tool with an External Fixture
You can use results from an In-Sight Vision Tool to provide fixture data for ViDi tools. In this scenario, a TrainPatMaxRedLine function is added, and a pattern is trained. A FindPatMaxRedLine function is added to locate the pattern in the image, and extract the fixture data. The ViDi function's External Fixture parameter references the X, Y and Angle data (typically via a Fixture function). Within the ViDi function, in the ViDi Editor, you will set the ViDi tool's ROI to ExternalFixture, and then define the tool's region of interest.
To configure a ViDi function to use an external fixture, perform the following:
- Locate and define what will be used to generate your fixture data within your images.
- Add the appropriate Vision Tools to define the fixture data.
-
Add a Fixture function to extract the X, Y and Angle data from the function defining the fixture data.
- Add a ViDi function.
-
Set the External Fixture parameter as an Absolute Reference to the Fixture function.
- Launch the ViDi Editor.
- Add the training and testing images.
-
The ViDi Editor will automatically apply the External Fixture and Region parameter data to the images.
-
Right-click within the image, and from the menu, select Edit ROI.
-
In the tool's Region of Interest toolbar, select External Fixture from the drop-down menu.
-
Configure the Region of Interest graphic within the Image Display Area.
-
Once the ROI graphic has been configured, press the Apply button in the Region of Interest toolbar.
-
This will update all of the images that were added to use the fixtured ROI.
In the event that an external fixture or ROI fails to properly align an image within the ViDi Editor, an error message, "No Views Extracted" will be displayed in the image.
You can enter the filter syntax view_index = -1 in the Display filter to show all the views that are exhibiting this behavior.
To correct the issue, note the names of the images that are experiencing this issue, then return to the Spreadsheet Editor and adjust the fixture data to account for the fixture failure.