On 23-Oct-08, at 4:43 PM, David Warde-Farley wrote:

> Sure; see http://morrislab.med.utoronto.ca/~dwf/bin.png
>
> In [12]: x = imread('bin.png'); imshow(x)
>
> produces a colourful plot that bears no resemblance to the original.


Two other things:

        a) PIL can read in these without incident; my work around has been to  
open with PIL and manually read each bit into a dtype=bool numpy array.

        b) I might add that what appears seems to be cyclic, making me think  
that it's trying to read a few bytes for each pixel where in fact  
there is only a single bit, and thus reading far less data than it's  
expecting, and thus only has a few columns worth of pixels that is  
somehow getting repeatedly referenced in the numpy array. This is all  
just (mildly educated) guesswork though.

David

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to