|
From: Jay P. <pa...@gm...> - 2007-01-26 16:41:40
|
On 1/26/07, John Hunter <jdh...@ac...> wrote: > >>>>> "Darren" == Darren Dale <dd...@co...> writes: > > Darren> vmin and vmax dont seem to have any effect on the > Darren> resulting image, at least on my machine with the most > Darren> recent svn. > > I haven't looked at his data or the output if fftshift. if vmin and > vmax do nothing, mpl is probably interpreting his image as RGB or > RGBA, which it would do if the output is MxNx3 or MxNx4 and thus would > not be applying scaling or color mapping. When using svn, vmin and > vmax do behave as expected in my test code: That's the problem, I believe. 'imread' in mpl always reads images in as MxNx4, while Matlab will check if the image is B&W and just do MxN. Is there any way to force MxN behaviour in mpl? Jay P. |