02-22-2017 07:08 PM
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.
Solved! Go to Solution.
02-22-2017 11:31 PM
-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_...
02-23-2017 10:35 AM
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.
02-23-2017 11:02 PM
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?
02-23-2017 11:11 PM
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.
02-23-2017 11:21 PM