mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-11 11:25:30 +08:00
In freeimage plugin, fix order of parameters to 'write'. Provide colour images to 'write' as CxMxN arrays.
This commit is contained in:
@@ -397,4 +397,6 @@ def imread(filename, as_grey=False, dtype=None):
|
||||
return read(filename)
|
||||
|
||||
def imsave(filename, arr):
|
||||
write(filename, arr)
|
||||
if arr.ndim == 3:
|
||||
arr = numpy.rollaxis(arr, 2, 0)
|
||||
write(arr, filename)
|
||||
|
||||
Reference in New Issue
Block a user