我正在尝试使用 Mahotas 编写图像,但发现它非常困难。
img = mahotas.imread('foo.png', True)
mahotas.imsave('bar.png', img)
我得到的错误是:
ValueError: mahotas.freeimage: cannot write arrays of given type and shape.
我在 OS X 上并使用 brew 来安装 freeimage。
我正在尝试使用 Mahotas 编写图像,但发现它非常困难。
img = mahotas.imread('foo.png', True)
mahotas.imsave('bar.png', img)
我得到的错误是:
ValueError: mahotas.freeimage: cannot write arrays of given type and shape.
我在 OS X 上并使用 brew 来安装 freeimage。