Why Wouldn't the Selected Template Match with the Main Image When Using Geometric Pattern Matching?
Primary Software Version: 8.5
Primary Software Fixed Version: N/A
Secondary Software: N/A
When I create a geometric pattern matching algorithm in Vision Assistant and convert it to a LabVIEW VI, it work fine and finds matches in the main image. When I select a different template image from the VI, the code won't find matches to my new template in the image, even though I know there should be matches there. Why won't it match anymore?
In geometric pattern matching, the template file needs to have the curve information in order to generate a match. In Vision Assistant, the curve information is automatically saved when creating a geometric matching template. In LabVIEW, however, when you select a new image to use as a template, this curve information will not be included, and your algorithm will fail to find matches.
In this situation, you must include additional functionality to create the template programmatically. The IMAQ Learn Geometric Pattern VI allows you to include the information of the curve in the template and the IMAQ Setup Learn Geometric Pattern VI allows you to set the parameter of the curve to identify in the template.
The image below shows where to place the function in order to create the template necessary for the geometric pattern matching in LabVIEW.
Vision Development Module Support
KnowledgeBase 3EIFDBCH: Common Errors and Issues When Using Pattern Matching with NI Vision
KnowledgeBase 3FDHO5CH: IMAQ Vision Algorithms
IMAQ learn geometric pattern.bmp
Report Date: 02/09/2009
Last Updated: 09/09/2011
Document ID: 4U82CVCN