View Full Version : Holding a copy of an imagebuffer for later analisys

Jack Johnson
November 24, 2008, 18:38:45
I'd like to hold a copy of an image in memory and then later process in a different thread.

Since I can't do

ImageBuffer = new ImageBuffer(), how can I do this.

If I could lock the buffer I want and have image capture continue and just skip this buffer that would work fine.

I analyzing a series of images and after getting the 2 I want I need to go back and futher analize them. This could take minutes.

I dont want to clone the bit map.


Stefan Geissler
November 25, 2008, 08:26:51

You can use "ImageBuffer.Lock()" to lock an image buffer and "ImageBuffer.Unlock()" for unlocking it.

You also can do following :

TIS.Imaging.ImageBuffer img;
img = IcImagingControl1.ImageBuffers[0];

Now you have in "img" a copy of an image buffer. You do not need to use the "new" operator.