Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Compare Golden Template - Scale Change?

Solved!
Go to solution
Hi, I have got a prototype inspection system working quite well with the Compare Golden Template.vi and am finding the majority of defects within my data set. However, currently I only have position and scale information coming from the Pattern Match into the Compare Golden Template VIs (as in the NI example). This works well when the samples are the same size, but if there is any change in scale the golden template comparison starts to struggle. (I have tried the Edge Thickness to Ignore settings, but it could still be better) I would like to be able to use the pass the scale information from the Pattern Match into the Compare Golden Template, but when I just wire the value across from the pattern match cluster (as is done with the position and angle info) the program then does not pick up any of the other defects that it did before, even when the scale has not changed. Has anyone come across this problem before? Do I need to somehow prepare the Compare Golden Template VI for a size change? (final application is a logo inspection system, very similar to the supplied NI example)
0 Kudos
Message 1 of 3
(3,153 Views)

Ok, so that was a bit of a wall-o-text, let me try and rephrase the question...

 

In the example ...Vision/3. Applications/Golden Template Inspection Example.vi:

Why does it stop finding the defects when I connect the scale wires from the pattern match?

 

 

 

I want to be able to inspect things that are slightly larger or slightly smaller than the template.

0 Kudos
Message 2 of 3
(3,142 Views)
Solution
Accepted by topic author Phil_

Got this sorted in the end (via a call to support) so am leaving a note for anyone in the future that has this problem:

 

The normal pattern match VI does not ouput scale information.

You need to use GEOMETRIC pattern matching to get the scale information.

0 Kudos
Message 3 of 3
(3,132 Views)