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 = n

Re: [Image-SIG] ImagePalette class problem

2007-06-05 Thread Lubin Fayolle
Hello, In scipy.misc you can find the fromimage function, which returns an array, the type of which depends on your image (if your image is RGB it will be 3-dimensional). You can then convert it into a matrix. Lubin --- "Alex Torquato S. Carneiro" <[EMAIL PROTECTED]> a écrit : > > I'm doing a

Re: [Image-SIG] Image to matrix

2007-06-05 Thread Brian Blais
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) for processing, about > fft, filter, etc.. > I'm needing to convert a image in a matrix type, can anyone help me? > > Thanks. > Alex. > T

[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.

[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 se