Matching Vision Assistant Settings for Learn Pattern2 in LabVIEW and C Primary Software: Vision AssistantPrimary Software Version: 8.10 Primary Software Fixed Version: N/A Secondary Software: N/A
Problem: When a pattern template is created in Vision Assistant for pattern matching steps, I am forced to save it as a separate .PNG file. If I convert this Vision Assistant script into a LabVIEW VI or C code, the resulting code uses the .PNG file as a hardcoded template in the script and does not expose what parameters Vision Assistant used to create the template file. If I try to create a similar template using default settings in LabVIEW or C, the pattern matching score is not the same. What settings does Vision Assistant use to create its patterns, so that I can use them in C or LabVIEW? Solution: When Vision Assistant learns the template from an image, it uses the IMAQ Setup Learn Pattern2 VI and the IMAQ Learn Pattern2 VI. The block diagram for this looks like the following:
int imaqLearnPattern2(image, IMAQ_LEARN_ALL, NULL); Where image in both cases is the input image. Either of these methods should result in an identical pattern matching score to the one Vision Assistant returns given the same source image and ROI. Related Links: Attachments:
Report Date: 03/24/2008 Last Updated: 03/28/2008 Document ID: 4JNHMA3H |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

