Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

NI1433 ring buffer example -> imgplot2 issues

hi All,

 

I am using NI PCIe1433 with Basler ava1000-120km (1Mpixel, 8 bit) on Win7 x64 with MSVS 2015. NI Vision acquisition 2015 Feb.

 

I took a RingBuffer example to build my C(C++) application and mostly I have no issues with it after having adjusted the example a bit. My quesion is really to the NIIMAQ API:

 

- the example works perfectly fine for reading and displaying 1Mpixel images with 8-bit depth at 100 Hz (did not think it was possible but it works)

- next step is to display averaged plot over 10 images. no problems with adding up 10 frames and deleting elementwize by 10. But! the result matrix is not int8 any more, but it's float32. Is there a way to modify the RingBuffer example (C++) without rewriting it cmopletely, e.g. to utilise different libraries?

- another acceptable solution is to display a sum of 10 frames (or 10000 frames, or evergrowing number of rames). The result is an array of int16 o int32. How can one use imgplot2() for this? No img type flag works exept the only valid one that matches the camera raw type = MONO_8.

 

thanks in advance!

Igor

0 Kudos
Message 1 of 1
(2,729 Views)