mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-10 12:40:08 +08:00
In freeimage plugin, set DummyArray to writable, use correct dtype.
This commit is contained in:
@@ -297,9 +297,9 @@ def _wrap_bitmap_bits_in_array(bitmap, shape, dtype):
|
||||
|
||||
class DummyArray:
|
||||
__array_interface__ = {
|
||||
'data': (bits, True),
|
||||
'data': (bits, False),
|
||||
'strides': strides,
|
||||
'typestr': '|u1',
|
||||
'typestr': dtype.byteorder + dtype.kind + str(dtype.itemsize),
|
||||
'shape': tuple(shape),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user