Re: [Image-SIG] Image warping in Python or PIL

2010-05-08 Thread Oliver Tonnhofer
On 08.05.2010, at 13:49, Fredrik Lundh wrote: > The transform(MESH) operation might be what you need. > >http://effbot.org/tag/PIL.Image.Image.transform > > Instead of mapping between individual pixels, cover the output image > with a grid, and calculate the source pixels for the corners of

Re: [Image-SIG] Image warping in Python or PIL

2010-05-08 Thread Fredrik Lundh
On Sat, May 8, 2010 at 5:58 AM, Son Hua wrote: > Hi, > > Can anybody show me some hints on how to implement an image warping function > efficiently in Python or PIL? Suppose we have a function f(x, y) -> (x', y') > that warps a pixel location (x, y) to (x', y'). Because (x', y') may end up > to be

[Image-SIG] Image warping in Python or PIL

2010-05-07 Thread Son Hua
Hi, Can anybody show me some hints on how to implement an image warping function efficiently in Python or PIL? Suppose we have a function f(x, y) -> (x', y') that warps a pixel location (x, y) to (x', y'). Because (x', y') may end up to be non-integer, and many (x, y) can map to the same (x',