[Image-SIG] ImagePalette class problem

2007-06-05 Thread Francisco José Seva Mora
Hello!! I'm trying to use the ImagePalette class from PIL ( python image library ) to load a dicom image that I have decoded. I read the official documentation and many other articles from blogs and webs but many of them are copies of the official documentation. I'm trying to use this class to

[Image-SIG] Image to matrix

2007-06-05 Thread Alex Torquato S. Carneiro
I'm doing a project in Python. It's a capture and process a image, I'm using PIL for images and scipy (together numpy) for processing, about fft, filter, etc.. I'm needing to convert a image in a matrix type, can anyone help me? Thanks. Alex.

Re: [Image-SIG] Image to matrix

2007-06-05 Thread Chris . Barker
Alex Torquato S. Carneiro wrote: I'm doing a project in Python. It's a capture and process a image, I'm using PIL for images and scipy (together numpy) I'm needing to convert a image in a matrix type, can anyone help me? The latest version of PIL supports this directly, you can do: M =