マホタスで画像を書こうとしていますが、妙に難しいと思います。
img = mahotas.imread('foo.png', True)
mahotas.imsave('bar.png', img)
私が得ているエラーは次のとおりです。
ValueError: mahotas.freeimage: cannot write arrays of given type and shape.
私はOSXを使用しており、brewを使用してfreeimageをインストールしました。
マホタスで画像を書こうとしていますが、妙に難しいと思います。
img = mahotas.imread('foo.png', True)
mahotas.imsave('bar.png', img)
私が得ているエラーは次のとおりです。
ValueError: mahotas.freeimage: cannot write arrays of given type and shape.
私はOSXを使用しており、brewを使用してfreeimageをインストールしました。