11-16-2015 03:54 AM
I am trying to create a VI where I can create and save two template files for later use with IMAQ Match pattern 4. But when I am trying to read the template files and use them in Match pattern I get "Invalid template descriptor" error. See picture below. Any idea what I am doing wrong?
It works fine when I use the template files directly without storing it in a png file first. Seems to be some problem related to appending vision information to the png. file.
11-16-2015 03:40 PM
Are template files created with no errors? Have you tried to load the templae files into vision assistant? I have seen issues where if the image area is too small it will cause an error.
11-17-2015 03:13 AM
Thanks for your response. Templates are created just fine without any errors. And it is possible to use them for pattern matching from vision assistant.
The VI seems to work if I use "Low Discrepancy Sampling" instead of "Grayscale value pyramid" even though I "train" the template for all algorithms.
11-18-2015 11:28 AM
I think it is one or the other as far as the algorithm. Grayscale Value Pyramid creates a much larger template file size than Low Discrepancy Sampling. Good thing is that you got it working.
11-19-2015 12:54 AM
Ok, thank you for your comments. As far as I can see Low Discrepancy Sampling- method seems to work OK for my application.