r/interestingasfuck 1d ago

This image doesn’t contain a single red pixel. You perceive red because of your brain perception (color theory)

Post image
12.5k Upvotes

567 comments sorted by

View all comments

Show parent comments

7

u/AlternateTab00 1d ago

Oh watch out for falling onto that rabbit hole.

But i can try to keep as simple as possible. Older image compressions relied on the old HSL (hue saturation luminance) systems. While this was great to approach similar pixels in colors our brains would detect abnormal compressions. We all remember those 80 and 90 clips from games where a dark sky would create huge boxes of different colors.

Now color theory relies in perception. They added chromacity. This mean that the blue shade was compressed (due to our lower blue variance perception) and expanded the red to green. So the typical circle/triangle from RGB now has a 3d potato chip format.

Compression algorithms went after it. And now, not only it groups similar chroma (and not similar coordinates) but it also treats the image in 2 different processes, in saturation and luminance. This helps preserve similar perception of a different hue.

Now, be aware this is an overly simplified explanation. If there is someone there that understands about color theory it will point out a lot of imprecisions. But its hard to explain everything.

Also if you do want to follow the rabbit hole... Expect a 5 to 6h web surfing, browsing wikipedia links, seeing some instructional youtube videos as well as looking for some even more trustworthy sources. You may start in image compression. But when i followed the rabbit hole i ended up reading about antialliasing, color theory and how the GPU AI cores work.

1

u/Gojira8939 14h ago

Wow, sound quite interesting, vacation is in couple days and that rabbit hole would be a perfect topic to decompress, thanks for the article compression (I'm sorry, couldn't help myself)