Hi all!
I am trying to playback a set of images(numpy.ndarray) using the Aravis fake camera interface in python and I am having trouble getting back the correct images during the camera acquisition. My images are 100 by 100 pixels with each pixel being of type numpy.uint16.
When I create the Aravis.Buffer I used Aravis.Buffer.new(size, preallocated )
I pass the number of bytes in my images for the size parameter = 20000
But I am not exactly sure what it expects for the second argument. I tried to convert the images to byte arrays and then cast those into ctype objects and then pass the adderss of the pointer to this ctype object then pushed the buffer into the stream. Once the camera starts acquiring, I pop the stream and try to retreive the images back from the buffer. But I am getting garabage data from the buffer and not the original images. Could someone point out what the correct argument type for preallocated is?