Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Description
It assumes the image is uint8 and incorrectly wraps the input at 255:
In [1]:fromskimageimportioIn [15]:io.imsave('io3.png',np.array([[0,1], [0,4196]],dtype=np.uint16),plugin='pil')In [19]:frommatplotlib.pyplotimportimreadIn [20]:imread('io3.png')Out[20]:array([[0. ,0.00392157], [0. ,0.39215687]],dtype=float32)In [21]:importmatplotlibasmplIn [22]:mpl.__version__Out[22]:'1.3.1'
Metadata
Metadata
Assignees
Labels
No labels