Python中的TIFF图像

时间:2015-09-08 12:18:10

标签: python tiff

我尝试了Working with TIFFs (import, export) in Python using numpy中的以下代码:

from PIL import Image
im = Image.open('Park_Falls.tif')
im.show()

import matplotlib.pyplot as plt
im = plt.imread('Park_Falls.tif')
print im

但两者都不适合我。

IOError: cannot identify image file <open file 'Park_Falls.tif', mode 'rb' at 0x0000000022FB71E0>

为什么呢?是因为TIFF图像太大(解压缩后为292 MB)吗?

图片取自here(Park_Falls.zip)

0 个答案:

没有答案
相关问题