LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

treatment of image refnum

Solved!
Go to solution

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)

 

 

0 Kudos
Message 1 of 2
(1,975 Views)
Solution
Accepted by topic author labmaster

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).

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 2
(1,967 Views)