Re: [Gegl-developer] alignment of pixels with coordinates

2009-05-28 Thread Nicolas Robidoux
Øyvind Kolås writes: ... I agree that the convention should be that pixel sampling sites are at integer coordinates. I also feel it would be natural to let the extent of a pixel be half way towards the neighbour pixel sites, this however has the issue of not matching the display GIMP

Re: [Gegl-developer] alignment of pixels with coordinates

2009-05-27 Thread Martin Nordholts
Hi Nicolas, Nicolas Robidoux wrote: Option 1: Samplers, and the operations which call samplers, have a toggle which specifies which convention to use. Given that the amount of different code in the two cases is very small, this would seem to me to be the best solution. Seems best to me

Re: [Gegl-developer] alignment of pixels with coordinates

2009-05-27 Thread Øyvind Kolås
On Thu, May 14, 2009 at 4:57 PM, Nicolas Robidoux nrobid...@cs.laurentian.ca wrote: My working assumption is that GEGL should be as consistent as possible with GIMP. gegl/gegl/buffer/gegl-sampler-cubic.c, for example, contains the following code: