I'm trying to smooth a 2D array of floats by converting it to a PIL
image, blurring it, then converting it back to an array. However, I
can find no practical way to convert arrays to and from PIL.
I've found http://effbot.org/zone/pil-numpy.htm but it was written 8
years ago for Numeric and
You're missing the headers for TK. You probably need to install
something like python-devel or tcl-devel packages.
but you should be able to use older PIL to do this, just not quite as
efficiently as with the array interface.
See tostring and fromstring in both PIL and numpy.
-Chris
Chris S
Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Chris S
Sent: Monday, November 06, 2006 20:39
To: image-sig@python.org
Subject: [Image-SIG] Array to Image to Array
I'm trying to smooth a 2D array of floats by converting it to a PIL
image, blurring it, then converting it back