Table of contents
A short quiz
If you have ever written, or are planning to write, any kind of code that deals with image processing, you should complete the below quiz. If you have answered one or more questions with a yes, there’s a high chance that your code is doing the wrong thing and will produce incorrect results. This might not be immediately obvious to you because these issues can be subtle and they’re easier to spot in some problem domains than in others.
So here’s the quiz:
I don’t know what gamma correction is (duh!)
Gamma is a relic from the CRT display era; now that almost everyone uses LCDs, it’s safe to ignore it.
Gamma is only relevant for graphics professionals working in the print industry where accurate colour reproduction is of great importance—for general image processing, it’s safe to ignore it.
I’m a game developer, I don’t need to know about gamma.
The graphics libraries of my operating system handle gamma correctly.
The popular graphics library <insert name here> I’m using handles gamma correctly.
... continue reading