RGB565 1D阵列到3D RGB图像
我有一个1D RGB565阵列,该数组从相机中获得,并希望将其转换为3D RGB图像。
因此,图像具有QVGA分辨率(320x240)和RGB565格式,从而导致153600字节阵列。
有没有快速的方法将其转换为图像,最好是使用PIL?
谢谢
I have a 1D RGB565 array that I get from a camera and would like to convert it to a 3D RGB image.
So the image has QVGA resolution (320x240) and with the RGB565 format that results to a 153600 byte array.
Is there a quick way to convert that to an image, preferably with PIL?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
this 解决我的问题
,这里是 我的问题代码:
this solves my problem
And here's the code: