[Numpy-discussion] create a numpy array of images

Christopher Barker Chris.Barker at noaa.gov
Tue Feb 1 12:58:17 EST 2011


On 2/1/11 8:31 AM, Friedrich Romstedt wrote:
> In case you *have* to downsample:
>
> I also ran into this, with the example about my 5 images ...
> im.resize((newx newy), PIL.Image.ANTIALIAS) will be your friend.
> http://www.pythonware.com/library/pil/handbook/image.htm.

If you want to downsample by a integer amount (i.e a factor of 2) in 
each dimension, I have some Cython code that optimizes that. I'm happy 
to send it along.

-Chris



-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov



More information about the NumPy-Discussion mailing list