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 <[EMAIL PROTECTED]> 
> 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 to
do the quantization in an input-output filter and the dithering in an
optional input+aux -> output filter that would take the quantized image
as aux and dither according to the differences from the original image.
That would make sense for error diffusion dithering, at least. And since
there are lots of ways to do the quantization step too, it would only
make sense to do it separately.

-- 
Hans Petter Jansson <[EMAIL PROTECTED]>

_______________________________________________
Gegl-developer mailing list
[email protected]
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gegl-developer

Reply via email to