如何在Python中从Bin文件中获取JPGRGB颜色

问题描述

我正在研究生物学数据,基本上是3维数组中的切片的集合。我可以在 .bin文件中获取所有切片,但是我正在python中寻找某种工具来帮助我检索 RGB图像文件。有人可以帮我吗?

解决方法

签出Pillow(PIL叉子)。 如果可以将二进制文件转换为numpy数组,也可以使用PIL.Image.fromarray将其转换为图像。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...