05-17-2012 09:02 AM
I want to acquire the stream of USB camera (image0 buffer) with simple image processing in realtime (image1 buffer).
After some processing, I want to copy the still image to other image2 buffer.
However, I observed some crosstalk among the buffers.
For example, I copied image1 to image2 buffer. Whenever image2 buffer was changed, image1 is also changed.
I suspect my mistake in treating of image refnum but cannot find it.
Before posting my code shot, I want to check it again with your comments becasue LV is not installed in this computer.
Anyway, what is the rule of thumb in defining/treating image buffer?
Is it desirable to define new image buffer whenever I changed the image?
I found some examples of creating image buffer inside For loop without deleting the refnums.
Is it safe to control the system memory?
Do I have to image reference should be transfered with shift register?
labmaster using LV2011 (not SP1)
Solved! Go to Solution.
05-17-2012 09:39 AM
What image buffers are you refering to IMAQ Image?
If so (or possible if not), these are not the normay wires in labview, they are more like pointers that a wire that holds the sata, so if you wire image buffer 1 into the image buffer 2 you actually make them point at the same image space, to copy data between buffers there is an IMAQ copy function, this puts the data at the image pointed to by buffer 1 into the image space pointed to by buffer 2. (I say image space instead array since IMAQ images are more complex than just a chunk of memory).