Settings

Theme

Show HN: IGN – Convert your image in any color palettes

ign.schrodinger-hat.it

2 points by thejoin95 · 3 comments

Reader

1 thread
SillyUsername

Hi, this is great as I wanted some fixed palettes for some cartoon image processing in a test project, and wasn't aware of those pastel palettes but there is a little room for improvement on the colour distance algorithm used in quantisation.

The algorithm you've used is a Euclidean sum of components https://github.com/Schrodinger-Hat/ImageGoNord-pip/blob/mast... You may (human perception!) find better colour accuracy in using the Compuphase algorithm https://www.compuphase.com/cmetric.htm or possibly a luminance or other cielab approach.

The implementation of the former is not much more difficult, e.g. see the C version breakout box on that link, but you should find (at least for my projects where I've used it) colour quantisation is (subjectively!) substantially better.

  • thejoin95OP

    Thanks for the feedback!

    You're right, there is a big room for improvement there.

    We choose the first one at the beginning but it might look better (or we can even let the user choose) which algorithm perform.

    I'm going to work on that! Again, thanks

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection