python - Loading QImage from memory using OpenimageIO -
i'm trying load qimage memory. pyopenimageio gives me pixels in python array: array('f',[r1,g1,b1,r2,g2,b2]). using function:
img = qtgui.qimage(pixels,spec.width, spec.height, qtgui.qimage.format_rgb888)
or
img = qtgui.qimage(pixels.buffer_info()[0],spec.width, spec.height, qtgui.qimage.format_rgb888)
gives me wrong result, this: https://dl.dropboxusercontent.com/u/6325775/nodes/images/out.png
setpixel() gives correct result, slow. taking , filling char* img.constbits() little bit faster. how load qimage memory of python array?