Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> It also has uses when reducing 48 or 64bpp RAW-format digital photos to 24bpp RGB for editing.

The author touches upon it here, but I think it's worth generalizing further: If you have high or maybe infinite precision in your color values, dithering will look much nicer than simply rounding to the nearest value. A concrete example is a color gradient. If done naively with rounding, color bands will be clearly visible. With dithering, they will be almost impossible to see.

See for example: http://johanneshoff.com/dithering/



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: