On Wed, 2008-04-23 at 14:41 +0100, Øyvind Kolås wrote:> On Tue, Apr 22, 2008 at 7:59 AM, Hans Petter Jansson <hpj@xxxxxxxxxxx> wrote:> > On Mon, 2008-04-21 at 20:36 +0100, Øyvind Kolås wrote: > > http://hpjansson.org/temp/meadow-dithered.png> >> > The picture has one bit per channel for a total of 8 colors, making it a> > true retro experience. From left to right -- original, thresholding,> > Bayer, F-S, covariant random and random dithering. > This might indeed be useful at some point, but right now I do not think the> GEGL architecture is flexible enough to warrant compilation and installation> by default. Thus I will drop this .c file into the workshop directory where> various works in progress reside. It is possible to write specialized ops> that would read the RGBA u16 and output the required file. (Using> R'G'B'A u16) would probably give slightly better results assuming the> displays and data involved are roughly sRGB data. Thanks for taking it in! I'm thinking a more GEGLy approach might be todo the quantization in an input-output filter and the dithering in anoptional input+aux -> output filter that would take the quantized imageas aux and dither according to the differences from the original image.That would make sense for error diffusion dithering, at least. And sincethere are lots of ways to do the quantization step too, it would onlymake sense to do it separately. -- Hans Petter Jansson <hpj@xxxxxxxxxxx> _______________________________________________Gegl-developer mailing listGegl-developer@xxxxxxxxxxxxxxxxxxxxxxxxxxx://lists.XCF.Berkeley.EDU/mailman/listinfo/gegl-developer