LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

create golden template

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.

0 Kudos
Message 1 of 10
(4,119 Views)

There is a good example of using golden template VIs here. Does this help for your project?

 

Cheers,

 

Andrew C.

Applications Engineering

National Instruments 

0 Kudos
Message 2 of 10
(4,059 Views)

Hi Andrew

That example only calls an existing golden template -I would like to find out how to create that template programmatically.

0 Kudos
Message 3 of 10
(4,031 Views)

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 

0 Kudos
Message 4 of 10
(4,020 Views)

It's quite straight -forward using the template editor, but how do you perform the same task programmatically?

0 Kudos
Message 5 of 10
(4,013 Views)

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.

0 Kudos
Message 6 of 10
(4,006 Views)

Thanks Phil. Do you have a copy that is compatible with LabVIEW 2011?

0 Kudos
Message 7 of 10
(3,964 Views)
0 Kudos
Message 8 of 10
(3,962 Views)

Thanks Phil -looks like what I was looking for -I'll try it out & let you know.

0 Kudos
Message 9 of 10
(3,945 Views)

Thanks Phil -I tested your vi and it works perfectly.

0 Kudos
Message 10 of 10
(3,937 Views)