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?


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -