PDA

View Full Version : saved image & ring buffer



meltemii
May 24, 2011, 15:56:40
I am saving a JPEG image every 0.5 sec from a LiveDisplay. I would like to compare the current image to be saved to the last saved image, if different, then save the current image. I would assume using the Ring buffer would be preferred as it would be the fastest vehicle to compare 2 images. Further, I assume by using the ImageAvailable event I would know which buffer indexed image to use. The questions are: 1. are these assumptions valid and 2. would the last saved image still be in the Ring buffer (can I lock it or should it be saved into a temporary memory area)?

Stefan Geissler
May 24, 2011, 16:20:30
1. are these assumptions valid
Yes

2. would the last saved image still be in the Ring buffer
Yes. You can lock the images, please see "imagebuffer.lock" in the documentation.