LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Keep Overlays on IMAQ

Hi there,

 

I am using the Vision toolkit to show recorded frames with a camera.

To make some analysis I put some ROI's onto the image. Moreover I do also use overlays.

If I am updating the image the overlay disappears. How can I keep the overlays and Roi's on the image while updating it?

 

Thank you in advance!

0 Kudos
Message 1 of 8
(3,779 Views)

I draw any overlay after an image has been acquired. Usually, any image acquisition clears the overlay.

You could create another image which can take a backup copy of your overlay, run one image acquision, and then apply the backup copy.

0 Kudos
Message 2 of 8
(3,776 Views)

Hi Tim,

 

what you experience is caused by the fact that IMAQ images do NOT follow data flow. This concept is quite uncommon in LabVIEW. There is only a single image buffer which is referenced and when this buffer is written to by a new acquisition, the old image is lost anywhere in your VI.

You can create multiple image buffers and keep multiple images, as Guenter suggested. Of course, it is possible to add the overlay to each newly acquired image.

 

Is re-writing the overlay with each acquisition an option for you?

 

Regards, Topp

0 Kudos
Message 3 of 8
(3,757 Views)

How would I do this in labview? I need to take a series of images and located an ROI point based on saved coordinates in an Excel file.

0 Kudos
Message 4 of 8
(3,744 Views)

frog7, have a look at these examples:

 

Image Acquisition Functional Global Variable (IMAQ or IMAQdx)

https://decibel.ni.com/content/docs/DOC-8667

 

Create New Image from User Selected ROI

https://decibel.ni.com/content/docs/DOC-8667

 

Also, have a look at "IMAQ Sequence.vi". This is meant to acquire a finite series of images.

0 Kudos
Message 5 of 8
(3,736 Views)

These two addresses are for the same location. I want to open an image and select an ROI based on pixel coordinates I have stored in another file. I do not want to select an ROI on screen and save it again.

0 Kudos
Message 6 of 8
(3,726 Views)

Honestly I don't really know a reason why your overlays should disappear,

but as an alternative to the suggestions before you could use "IMAQ Merge Overlay" to merge them down to the image. But keep in mind that the imagetype will change to U32 RGB then!

 

 

Christian

0 Kudos
Message 7 of 8
(3,719 Views)

My bad.

 

Image Acquisition Functional Global Variable (IMAQ or IMAQdx)

https://decibel.ni.com/content/docs/DOC-14767

0 Kudos
Message 8 of 8
(3,706 Views)