|
From: John H. <jdh...@ac...> - 2007-01-26 17:40:43
|
>>>>> "Jay" == Jay Parlar <pa...@gm...> writes:
Jay> That's the problem, I believe. 'imread' in mpl always reads
Jay> images in as MxNx4, while Matlab will check if the image is
Jay> B&W and just do MxN. Is there any way to force MxN behaviour
Jay> in mpl?
No way currently, but one could modify the png reader to do it....
Probably easiest is to use PIL and get a grayscale numpy array out,
then mpl's colormapping and normalization will work as advertised.
JDH
|