Butterflies - This image only has 16 colors

This is a 16 color palette reduced image using my own custom palette generator algorithm. The palette it detected and in use is in the top right.

Based on this post right here...

https://discuss.online/post/36509543

26 points · 8 comments · view on lemmy.world

8 Comments

henfredemars@infosec.pub · 6 pts · 175d (3 replies)

This image has this lovely crustiness to the limited color palette that really speaks to my days using fishbowl Macs in the computer lab.

over_clox@lemmy.world · 4 pts · 175d (2 replies)

Yes indeed 👍

But there's a little something different I did here, I made my own custom palette reduction algorithm, that finds the best palette for a given image.

Yeah it's not a new idea by far, but my algorithm seeks the edges of the color space first, yielding higher color saturation than most other palette reduction techniques.

Cawifre@lemmy.world · 2 pts · 175d (1 reply)

I'm really impressed with how well it retained the fuzziness of their faces and on the traces on the upper one's wing segments.

over_clox@lemmy.world · 1 pts · 175d

I didn't exactly reinvent the error diffusion dithering algorithm, I just reinvented palette reduction tailored to a specific image, that gives the most optimal palette for the given image.

I wrote the algorithm like 18 years ago, kinda just testing myself to see if I even remember how it works in its incomplete state. Apparently so.. 👍

glibg@lemmy.ca · 3 pts · 175d

Great photo and great example of colour efficiency.

tyler@programming.dev · 3 pts · 175d (2 replies)

Makes me think of the recent stand up maths video on dithering.

jim_v@lemmy.world · 4 pts · 175d (1 reply)
over_clox@lemmy.world · 1 pts · 175d

He's doing ordered dithering plus random generated noise there. That's a bit different than error diffusion dithering, the noise comes from the image itself via a feedback loop.