ndimage.imread(image_file).astype(float)在PIL中不起作用

时间:2017-04-24 09:18:02

标签: python numpy scipy python-imaging-library

我试图读取图像文件并使用scipy ndimage,然后尝试将相应的图像文件转换为float ndarray。但它的抛出异常:

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/Image.py", line 512, in __getattr__
    raise AttributeError(name)
AttributeError: __float__

0 个答案:

没有答案