mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-05 09:05:33 +08:00
Fix indexing bug in freeimage plugin
This commit is contained in:
@@ -672,7 +672,7 @@ def _array_to_bitmap(array):
|
||||
raise RuntimeError('Could not allocate image for storage')
|
||||
try:
|
||||
def n(arr): # normalise to freeimage's in-memory format
|
||||
return arr.T[:, ::-1]
|
||||
return arr.T[..., ::-1]
|
||||
|
||||
wrapped_array = _wrap_bitmap_bits_in_array(bitmap, w_shape, dtype)
|
||||
# swizzle the color components and flip the scanlines to go to
|
||||
|
||||
Reference in New Issue
Block a user