Menu

1 / 13

What every coder should know about gamma

Hacker News·5 months ago
#MtvZGsey
#gamma#linear#srgb#light#article
Reading 0:00
15s threshold

2016 Sep 21

graphics

gamma

linear workflow

Table of contents

A short quiz

The arcane art of gamma-correctness

What is gamma and why do we need it? Light emission vs perceptual brightness

Physical vs perceptual linearity

Efficient image encoding

The gamma transfer function

Gamma vs sRGB

Gamma calibration

Processing gamma-encoded images

Effects of gamma-incorrectness Gradients

Colour blending

Alpha blending / compositing

Image resizing

Antialiasing

Physically-based rendering

Conclusion

References & further reading General gamma/sRGB info

Linear lighting & workflow (LWF)

Bonus stuff

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.