logoalt Hacker News

mungoman2today at 2:14 PM2 repliesview on HN

Tbh shrinking the image is probably the cheapest operation you can do that still lets every pixel influence the result. It’s just the average of all pixels, after suitable color conversion.


Replies

bombcartoday at 2:22 PM

It might work decently well, but I wonder if it makes it "visually" match - sometimes the perfect average is not what our eyes see as the color.

LoganDarktoday at 3:12 PM

The author of the article seems to assume there is no color conversion (e.g., the resizing of the image is done with sRGB-encoded values rather than converting them to linear first). Which is a stupid way to do it but I'd believe most handwritten routines are just that.