Jump to content

An issue in Compare Golden Template in for loop (vision)


ASalcedo

Recommended Posts

Hi to all,

 

First of all thanks a lot for reading this post and being able to help.

 

I am trying to use Imaq Compare Golden Template vi in a for loop.

I am trying to do the next:

 

1- I have 3 templates and 1 image inspection.

2- The templates are in the image inspection. So image that the image inspection is an image with a big 1 2 3 numbers. So the templates are 1, then 2, and then 3. An for loop has 3 iterations.

3- In each iteration I pass a template, with IMAQ pattern matching vi template is found in an image (getting bounding box) and then do the compare golden template to get the defects (differences between template and image).

 

I am doing the program based on this example "LabVIEW\examples\Vision\Golden Template Comparison\Golden Template Inspection.vi"

 

My program is the next:

defectVI.png

 

In the program I have three images (Cam1_PROD_display, Cam1_PROD_display2, Cam1_PROD_display3) with defects drawn in each templates, I mean, defects in template 1 are drawn in Cam1_PROD_display, defects in template 2 are drawn in Cam1_PROD_display2, defects in template 3 are drawn in Cam1_PROD_display3. Something like this:

sourceImage.png

 

-Templates are three (1, 2, 3):

template1.pngtemplate2.pngtemplate3.png

 

- And the displays Cam1_PROD_display, Cam1_PROD_display2, Cam1_PROD_display3 show the next in each display (with defects in red):

display1.pngdisplay2.png

display3.png

 

- But I want just one display which shows all defects in one image like this:

displayIwanted.png

 

How can I do that with the code that I have?

 

I think that I have to do some operations (merge) of the three displays in one.

 

Any ideas?

 

Thanks a lot. 

 

 

 

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.