From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Keep all overlay information during image acquisition when using the base IMAQ package

Solved!
Go to solution

I have made an X control from the IMAQ image display control that has the ability to overlay points and lines on an image but when I put my X control into my image acquisition loop the overlay information disappears  with every new image I acquire.

 

How can I keep the overlay in place and just update the control with the new image and not overwrite the overlay data? I have tried the merge overlay function but this does not seem to work.

 

Thanks.

 

 

 

0 Kudos
Message 1 of 3
(4,600 Views)
Solution
Accepted by topic author Jimmy01

Overlays normally are erased when you acquire a new image.  You could create the overlays on a separate image, then copy the overlays to each new image before you display it.  The other option is to recreate the overlays for each new image.

 

Bruce

Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 3
(4,581 Views)

Ok thanks looks like I will create the overlays each time inside the Xcontrol so.

 

Thanks!

0 Kudos
Message 3 of 3
(4,561 Views)