LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Export Image overlays

Solved!
Go to solution

Is there a method to read the overlays that are applied to an image? I know you can do explicit functions to specific groups of overlays, but I cannot find anything to be able to get the information back out. I've looked in the custom image keys, but it does not show up there.

Message 1 of 6
(3,249 Views)

-Use IMAQ Merge Overlay to merge overlay to source image http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/imaq_merge_overlay/

-Use IMAQ Write Image and Vision Info and Read VIs to read the vision info such as overlays: http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/imaq_write_image_and_vision_info_file_...

Thanks
uday
0 Kudos
Message 2 of 6
(3,212 Views)

Thanks, but that's not what I need. I want to know exactly the overlays that got applied. At a later point, I want to be able to know the exact overlays so I can extract information from them such as the knowing where exactly a point was drawn, or a circle. 

0 Kudos
Message 3 of 6
(3,190 Views)

Where you want to export ROI information? a file? image? or use in the same code?

-When you want to use the information again? and for what exactly?

-Can you provide some  more detail along with code to explain the problem?

Thanks
uday
0 Kudos
Message 4 of 6
(3,179 Views)
Solution
Accepted by topic author nzamora

Specifically, I'm drawing circles onto images. At a later point, on a completely different computer and without any of the information of how the circles got drawn, I want to be able to read them back out so I can know the bounding box of each circle drawn with its group name - they're all unique.

 

I am starting to believe that Overlays are not akin to ROIs and do not keep their drawing information. I believe they are stored as layers(groups) of transparency that has the overlay "destructively" drawn into it. This is why there's no apparent method to retrieve the drawing information - it doesn't exist. Only layers of drawings exist that are displayed on top of the natural image. This would also explain why merging them destructively into the main image is so easy.

 

I'm going to make my own workaround by storing the overlay information into custom keys in the image file. This way I know the format it is stored in, so I will easily be able to retrieve it.

Message 5 of 6
(3,176 Views)
-You can use the example in below link to save the Image with ROI data.
http://forums.ni.com/t5/Example-Program-Drafts/Save-Image-with-ROI-Data/ta-p/3511494
-You can convert the Overlays to ROI: http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/region_of_interest_conversion_pal/
Thanks
uday
0 Kudos
Message 6 of 6
(3,170 Views)