0
我观察到PIL和scikit图像这个奇怪的问题。当我做在滑雪图像中调整图像大小后,PIL奇怪的错误
img=io.imread(imgLoc)
pilImg=Image.fromarray(img)
它运行完美。当我尝试使用skimage的重新调整方法是这样来调整图像大小:
img=rescale(io.imread(imgLoc),0.5)
pilImg=Image.fromarray(img)
它说
File "/home/abc/activepython/lib/python2.7/site-packages/PIL/Image.py", line 2137, in fromarray
raise TypeError("Cannot handle this data type")
TypeError: Cannot handle this data type
从skimage.io.imread和skimage.transform.rescale两者的回报numpy.ndarray
我人工检查以及的文档。任何人都可以对此有所了解吗?