[Image-SIG] Undeliverable mail (fwd)

Fredrik Lundh fredrik@pythonware.com
Wed, 17 Feb 1999 09:19:07 +0100


Travis Oliphant wrote:
> It would be better, I think if the PIL were built around the
> multiarray object already.  I guess I'm not sure what kind of
> work this would involve.

Agreed.  There's three big reasons why it isn't so right now:
1) NumPy didn't exist when the first PIL versions were written,
2) it's quite important that PIL can be used on its own, and 3)
a lot of PIL-related code depends on the current Imaging
structure layout.

Moving the multiarray stuff into the Python code would help
a lot...

> Another possibility is to have the underlying image data be
> both an Image object and Multiarray object at the same time
> (same data area different headers? in the C-struct)

PIL 1.1 will most likely support "access adaptors" which would
make it possible to treat NumPy arrays (and various other things)
as image memories.  (It's too early to ask "when"...)

Cheers /F
http://www.pythonware.com/people/fredrik