[Gegl-developer] Scanline processing in a GeglOperation

Hans Petter Jansson hpj at copyleft.no
Mon Apr 21 23:59:39 PDT 2008


On Mon, 2008-04-21 at 20:36 +0100, Øyvind Kolås wrote:

> You need to do the following:
> [...]

Thanks for all the help! I wrote an operation to do color reduction to a
specified number of bits per channel, employing one out of a couple of
potential color compensation strategies.

I'm attaching it in case you want to use it for something, or re-use
parts of the code in a better operation.

I put a test image up at

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.

-- 
Hans Petter Jansson <hpj at copyleft.no>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: color-reduction.c
Type: text/x-csrc
Size: 12971 bytes
Desc: not available
Url : /lists/gegl-developer/attachments/20080422/a05b1e59/attachment.bin 


More information about the Gegl-developer mailing list