[Gegl-developer] Proposition : GeglInterpolator

Øyvind Kolås pippin at gimp.org
Sun Oct 15 15:27:19 PDT 2006


On 10/16/06, Øyvind Kolås <pippin at gimp.org> wrote:
>       #if 0
>         /* using this form, might make more sense, since it would allow accurate
>            sampling as needed by affine/perspective transforms that are scaling
>            down as well as when scaling up/interpolating
>          */
>         gegl_sampler_get_quad (sampler, xc-0.5, yc-0.5,
>                                         xc+0.5, yc-0.5,
>                                         xc+0.5, yc+0.5,
>                                         xc-0.5, yc+0.5,
>                                         buf);
>       #endif

I think this is wrong, each of the seperate corners of the output pixel
should probably have their coordinates computed separatly, before
being passed in.

/Øyvind K.
-- 
«The future is already here. It's just not very evenly distributed»
                                                 -- William Gibson
http://pippin.gimp.org/                            http://ffii.org/


More information about the Gegl-developer mailing list