LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Golden Template Inspection Vision

Solved!
Go to solution

Hi,

I am trying to compare two images using the Golden template Inspection in Vision Examples.

I get the following error :  MAQ Vision: (Hex 0xBFF60791) Invalid template descriptor.

 

The two images in my test code is identical. Also why is the template image shown in BW ?

 

Any ideas that can point me in the right direction?

 

Thanks

 

0 Kudos
Message 1 of 4
(2,003 Views)
Solution
Accepted by topic author hasse

Hi

You may not learn the golden template information, and directly comparing the two "raw images".

 

Please note, comparing two image directly without template information only works in idea world. To perform the Golden Template Inspection in real world, we need consider the difference of image size, rotation, misalignment, Distortion, gray scale difference and noise etc. those information have to be learnt from the golden template before you perform the comparison.

 

the template information can be learnt in design phase or run-time phase.

 

To do it in design phase, please use vision template editor and save the template information with your .png template(see below):

Gaoke_0-1644201187737.png

 

to do it in run time phase, the IMAQ learn pattern and IMAQ learn Golden shall be used, I have quickly modified the example for this purpose as below:

Gaoke_1-1644201414131.png

 

Gaoke

0 Kudos
Message 2 of 4
(1,976 Views)

Gaoke,

thank you so much for this information. I see that it is a lot more into it and I really learned from this.

 

One question still, why are the images (both template and source) shown in black/white?

 

Regards,

Hans

0 Kudos
Message 3 of 4
(1,940 Views)

You are very welcome!

 

believe the black/white image caused by the pattern learnt was based on grayscale.

 

gaoke

0 Kudos
Message 4 of 4
(1,927 Views)