标签: 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__