09-28-2014 11:44 AM
I'm trying to create a golden template comparison but couldn't get correct result. I used
IMAQ Create,
Read File,
Learn Golden Template,
Compare Golden Template,
Highlight Golden Template Defects,
respectively. Even if I use the same image, the defects are coming out. What is the problem with this VI? Do I need more steps to do this comparison?
I am using the "NI_Label" images under examples directory. You can see the VI in attachment.
Solved! Go to Solution.
09-29-2014 01:17 PM
Have you had a chance to check out the Golden Template shipping example? I would give that a try and see if you have your program set up the same way!
http://www.ni.com/example/30556/en/
Let me know if that helps!
09-29-2014 02:48 PM
Hello Rob,
I look at that example, it works fine but it uses pattern matching functions beside golden template functions. I'm trying to get the simplest code for Golden Template Comparison with using Learn Golden Template & Compare Golden Template functions. Isn't that possible?
09-30-2014 05:43 PM
I was taking a look at the VI that you send but you are missing a subVI in what you posted. Can you attach a screenshot of the defects that you are seeing. What ROI are you using ? The reason that you use pattern matching before the golden template is to figure out where the area you are comparing is.
10-07-2014 10:01 AM
Sorry for late response. Attached, defects image.
I don't know which subVI is missing.
10-08-2014 11:13 AM
Hi sevincom,
From the code you attached to your first post, it seems that you are not defining any region of interest before performing the Golden Template comparison. I would recommend defining a region of interest prior to comparison to isolate what region needs to be compared.
Regards,
Jordan G.
Applications Engineer
National Instruments