On 1/26/07, John Hunter <[EMAIL PROTECTED]> wrote:
> >>>>> "Jay" == Jay Parlar <[EMAIL PROTECTED]> 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.
Beautiful, that worked like a charm.
from PIL import Image
im = Image.open("4kSnake.png")
a = scipy.asarray(im)
ft = fftpack.fftshift(fftpack.fft2(a))
...
Perfect!
Thanks so much,
Jay P.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users