10-06-2013 11:01 PM
Has anyone found the correct method of creating a golden template from a new image? There are no examples. How do you prepare an 8-bit image with layers of value 0,1,2? It's not very clear.
10-07-2013 09:19 PM
There is a good example of using golden template VIs here. Does this help for your project?
Cheers,
Andrew C.
Applications Engineering
National Instruments
10-08-2013 07:14 AM
Hi Andrew
That example only calls an existing golden template -I would like to find out how to create that template programmatically.
10-08-2013 08:46 AM
Golden templates are created using the Template Editor utility which is installed with the Vision Development Module. This utility should be located in your Start Menu under National Instruments»Vision»Utilities. Have you tried creating a template here to use with the Golden Template VIs?
Cheers,
Andrew C.
Applications Engineering
National Instruments
10-08-2013 09:17 AM
It's quite straight -forward using the template editor, but how do you perform the same task programmatically?
10-08-2013 10:13 AM - edited 10-08-2013 10:19 AM
Use the Learn Golden Template vi that is in the Vison>machine vision>inspection library.
You might need to pattern match before you use your golden template, you can use both the learn pattern match vi and the learn golden template vis on the same image, and then save one master template.
See below for a tester VI that I had laying around, its not specifically written to answer your question, so has a few extra bits in there too.
Hope it helps.
10-09-2013 05:58 AM
Thanks Phil. Do you have a copy that is compatible with LabVIEW 2011?
10-09-2013 06:04 AM
There you go:
10-09-2013 08:18 AM
Thanks Phil -looks like what I was looking for -I'll try it out & let you know.
10-10-2013 04:59 AM
Thanks Phil -I tested your vi and it works perfectly.