Re: MMX speedup for Floyd Steinberg error diffusion



On May 12, 9:06 am, "Novosad, Stephan R." <spamt...@xxxxxxxxxx>
wrote:
Terje wrote:
To do a mathematically perfect job I would start with a 5:5:5 (32 K) or
4:4:4 (4 K) table, with each entry being the start of a list of all the
possible palette entries for that entry:

Somewhat interesting as I initially quantize to 4,096 bins, and
then reduce the palette using a pairwise clustering algorithm.

This thread has made it clear that there are experienced graphics
people reading the group, so I hope it's okay to veer into an off-
topic tangent...

I have asked this question in comp.graphics and related newsgroups but
either gotten nowhere or received advice that didn't make sense: Does
anyone have any links to resources (or can describe the basic theory)
of dithering a picture using an ordered matrix (ie. bayer 4x4, etc.)
but fitting to an arbitrary palette? The only code examples I've seen
have been for ordered palettes with the same number of bits per
component (ie. 8 colors, 236 colors, etc). I have a need to dither
using an ordered matrix but fitting to an arbitrary palette.

Photoshop can do this, but it's the only program I've seen that can.
Someone referred me to ImageMagick, but that only offers ordered
dithering to ordered 2^n palettes, so looking at the source doesn't
help me...

.



Relevant Pages

  • Re: Problems with last entry in Color Pallette of Bitmap
    ... I have problems with the last palette entry in a BMP i am creating. ... Want i do is break a Geotiff file up in lots of smaller BMP's, ... I used GetPaletteEntries with the changed Bitmap to compare the values ...
    (comp.lang.pascal.delphi.misc)
  • Re: nearest colour and thanks for the palette help
    ... But if you have only 256 colors in palette then you ... solution is to construct the Voronoi diagram for the palette ... A Voronoi region for a palette entry is the set of all points ... the exhaustive search was gawd-awful slow. ...
    (comp.graphics.algorithms)
  • Re: MMX speedup for Floyd Steinberg error diffusion
    ... Compute the RGB colorspace distance between the palette entry and the ... Choose the index with the minimum distance. ... A 16 MB table is NOT something I like to throw around, and the initialization time for the table is very likely to drown the processing time unless you have a _lot_ of images with the same palette. ... To do a mathematically perfect job I would start with a 5:5:5 or 4:4:4 table, with each entry being the start of a list of all the possible palette entries for that entry: ...
    (comp.lang.asm.x86)
  • Problems with last entry in Color Pallette of Bitmap
    ... I have problems with the last palette entry in a BMP i am creating. ... Want i do is break a Geotiff file up in lots of smaller BMP's, ... I used GetPaletteEntries with the changed Bitmap to compare the values ...
    (comp.lang.pascal.delphi.misc)
  • 256 color palette problems!
    ... I have problems with the last palette entry in a BMP i am creating. ... Want i do is break a Geotiff file up in lots of smaller BMP's, ... I used GetPaletteEntries with the changed Bitmap to compare the values ...
    (comp.lang.pascal.borland)