LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I save an avi from images acquired through buffers?

Hi all,
 
I recently have started using Labview, mainly for IMAQ purposes. I started by learning how to save images, then how to do just avi's. Now the problem comes up is that I want to find a way to average a bunch of images together in real time. So that as the program runs (I dont have to actually be recording) I can have an out put of what the camera sees, just with maybe 10+ frames averaged together. Best way I could think of doing this was using buffers and then adding them all together before it starts to write overtop of them again. But how can I save that summed picture? I try to take that result and run it to an image on the front panel (which works) but when I go to save it to avi or something it says that I can not convert buffer images, also if I try to do the copy buffer it gives me that the image needs to be released. I will attach sort of what I have now, though it does not work.
 
Any ideas would be helpful. Thank you all very much!
 
-Dave
0 Kudos
Message 1 of 6
(3,569 Views)

This may not help at all...

But have you thought of not using buffers?

Since you're using the IMAQ package anyway, if you don't need a super high frame rate why don't you just grab individual images put them into a shift reg. and sum for x=n, then plop that summed image to a new imaq image to save and start over.  I say this because if you're only trying to grab an avi for the individual images why not just grab the individual images as jpgs or whatnot and save yourself the trouble?

 

 

0 Kudos
Message 2 of 6
(3,563 Views)

Sounds brilliant; however, me being new to all of this had no idea one could do as such. Just was trying to work with the tools I know of... could you possibly show an example of how to do this or something to search for along the lines of that? It would help immensely. Thank you very much ;).

-Dave

0 Kudos
Message 3 of 6
(3,559 Views)
How are you getting images, USB CCD Camera?
 
 

Message Edited by IEC on 06-27-2006 07:04 AM

0 Kudos
Message 4 of 6
(3,557 Views)
Well, it is a CCD Camera. However it is acquired through its own DAQ card, I believe it is an NI PCI 1410 card. Thanks.
0 Kudos
Message 5 of 6
(3,545 Views)
So... did I mention how big of a newb I was? Well I didnt realize what the input img dst terminal meant on the IMAQ conversions. Decided to try that out with a new image, and I can now take the summed images and convert them into a totally  new image. This one I can then record. This may not be the most elegant way of doing things, but I think it will definitely help in what I need to accomplish. Thanks all.
0 Kudos
Message 6 of 6
(3,538 Views)