Question

In my application I'm doing gamma, brightness and contrast corrections defined by the user. Now I was wondering whether there is a standard order of doing this or not.

It may sound trivial but I couldn't find anything regarding this. I guess it's possible to get the same result regardless of the order but I just want to be sure in order to make it as intuitive as possible.

Was it helpful?

Solution

Most predictable effects can be achieved by using color matrix. Applying transformations sequentially might result in loss as color overflows during each steps will be irrecoverable. Alternatively color transformations can be done on higher precision than source data - then order is not important due to gamma, contrast and brightness being luminance transformations only.

Edit: To clarify - order is not important within a single transformation, not to confuse with multiple transformations in sequence.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top