小编Vic*_*iau的帖子

在python中将大图像文件作为数组读取

有谁知道如何使用python打开一个大的图像文件?我尝试使用ipython通过Windows命令提示符打开图像文件(大约2 GB),但每次将图像值更改为数组后都会崩溃.

我的笔记本电脑是window7-64bit,配备4GB内存和Intel(R)Core(TM)i7-2860 QM CPU.

错误消息是:python.exe已停止工作问题导致程序停止正常工作.Windows将关闭程序并在解决方案可用时通知您

这是我的代码.

import Image
import numpy as num
im=Image.open('myimage.tif')
imarray=num.array(im)
Run Code Online (Sandbox Code Playgroud)

python numpy image python-imaging-library

3
推荐指数
1
解决办法
9058
查看次数

标签 统计

image ×1

numpy ×1

python ×1

python-imaging-library ×1