Re: PIL interpolation access

2004-11-30 Thread irond_will
I managed to get steps 2 and 4 fixed (grabbing and putting the pixels). I converted some code found at http://effbot.org/zone/pil-numpy.htm written by Fredrick Lundh. Currently, it only works for RBG bitmaps. I'm certain that there are better ways to do some of this, but it's pretty zippy as it

Re: PIL interpolation access

2004-11-30 Thread Caleb Hattingh
Hi I can't help you directly, but I am also finding im.putpixel to be extremely slow - as the docs recommend, can you try using the pixel-placing method of Draw? This is what I am going to try for my application (resampling algorithms). Thx Caleb On 30 Nov 2004 11:18:40 -0800, irond_will <[

PIL interpolation access

2004-11-30 Thread irond_will
Does anyone know how I might directly access PIL's bicubic interpolator? I have an arbitrary array of points for which I need to find interpolated color values. Unfortunately, I have no clue how to acceess the bicubic filter in the PIL module, and my NumArray solution is very slow and clunky. I'