13 Dec
2011
13 Dec
'11
2:56 a.m.
On Mon, Dec 12, 2011 at 5:13 PM, Tony Yu <tsyu80@gmail.com> wrote:
Strange: when I open "circles.png" using the matplotlib backend, I get a float32 array (with the white pixels equal to 0.00392157). With the PIL backend, I get a bool array (before your recent bug fix) or uint8 (after the fix). Are you not having the same issue with matplotlib?
While the bool type is fine (it's a black and white image), the pixel order was completely messed up; try to display it! In mpl, I see the same thing you do. It is because matplotlib assumes that all images with depth < 8 is 8-bit, and therefore returns 1/255 instead of 1. Filed here: https://github.com/matplotlib/matplotlib/pull/623 Cheers Stéfan
4772
Age (days ago)
4772
Last active (days ago)
0 comments
1 participants
participants (1)
-
Stéfan van der Walt