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