Re: [Matplotlib-users] weird matplotlib imread question for png

2015-04-17 Thread Fabrice Silva
Le vendredi 17 avril 2015, oyster a écrit : > Two 8bpp(Gimp, xnview say so) graylevel png files can be downloaded > The first (ramp-gray.png) which gives right array shape is > http://bbs.blendercn.org/data/attachment/forum/201504/17/090627ejhixti8vdthdnnn.png > The second one (python-gray.png) whi

Re: [Matplotlib-users] weird matplotlib imread question for png

2015-04-16 Thread oyster
Two 8bpp(Gimp, xnview say so) graylevel png files can be downloaded The first (ramp-gray.png) which gives right array shape is http://bbs.blendercn.org/data/attachment/forum/201504/17/090627ejhixti8vdthdnnn.png The second one (python-gray.png) which gives 'wrong' array shape, at least to me, is htt

Re: [Matplotlib-users] weird matplotlib imread question for png

2015-04-16 Thread Ryan Nelson
Oops. I meant bits not bytes in my earlier statements. Sorry. On Thu, Apr 16, 2015 at 11:24 AM, Ryan Nelson wrote: > xnview says it is 128*128*8, but "print >> imread('python-gray.png').shape" says (128, 128, 3), however I suppose >> it should be (128, 128)! > > Not sure that this is true, but

Re: [Matplotlib-users] weird matplotlib imread question for png

2015-04-16 Thread Ryan Nelson
> > xnview says it is 128*128*8, but "print > imread('python-gray.png').shape" says (128, 128, 3), however I suppose > it should be (128, 128)! Not sure that this is true, but I guess that xnview is using the third dimension here to refer to a number of bytes. In this case, it is two bytes, one f

Re: [Matplotlib-users] weird matplotlib imread question for png

2015-04-16 Thread Fabrice Silva
Le jeudi 16 avril 2015, oyster a écrit : > Firstly, thanks, Fabrice Silva > > I have checked my picture files again. > > For python-gray.png, now it is attacched here or can be downloaded > from > http://bbs.blendercn.org/data/attachment/forum/201504/16/222351w3952n3o9968m9a5.png. > xnview says

Re: [Matplotlib-users] weird matplotlib imread question for png

2015-04-16 Thread oyster
Firstly, thanks, Fabrice Silva I have checked my picture files again. For python-gray.png, now it is attacched here or can be downloaded from http://bbs.blendercn.org/data/attachment/forum/201504/16/222351w3952n3o9968m9a5.png. xnview says it is 128*128*8, but "print imread('python-gray.png').sh

Re: [Matplotlib-users] weird matplotlib imread question for png

2015-04-14 Thread Fabrice Silva
Le mardi 14 avril 2015 à 18:15 +0800, oyster a écrit : > I am using anaconda(Python 2.7.6 |Anaconda 1.9.2 (32-bit)| (default, > Nov 11 2013, 10:50:31) [MSC v.1500 32 bit (Intel)] on win32) on > windows 7 64 bits > And the matplotlib is 1.4.3, numpy is 1.9.2, and scipy is 0.15.1, > which are all bee