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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Clearing specific IMAQ overlays loaded from a PNG

I have written a data capture program that saves several image overlays into a "PNG with vision info" file. I then load this with another program and reconstitute the data. I have been able to selectively delete some overlays if I use the same name with the IMAQ clear overlay VI, but for this I have to know the exact name of any overlays present. Is there any way to get a list of the overlays present in the embedded data, so I don't have to guess the overlay names?

0 Kudos
Message 1 of 2
(2,839 Views)

Hi CuriousCoder,

 

You may want to look into custom "keys", used to store extra information with an image and retrieve it. This way you can name, and more importantly know the names of the IMAQ overlay. 

Attached is a piece of code that shows the general use of using these key functions. It is not executable, but it shows the layout of the functions.

 

Hope this helps. 


Rebecca

Saving Data to Images with Keys.vi:

0 Kudos
Message 2 of 2
(2,739 Views)