title: Convert Gamma/RGB curves to RGB curves with no gamma
body: <p>With softwares like GIMP and Photoshop, it is possible to apply RGB curves, but the function is using an extra "gamma" curve.</p>
  
  <p>When programming and manipulating pixels, I often only own 24 bits, RGB only frames, so it is impossible to directly use RGB curves created/detected in a 3rd party imaging software and re-use them to hardcode some arrays like this in a program:</p>
  
  <pre><code>byte[] rCurve = { ... }
  byte[] gCurve = { ... }
  byte[] bCurve = { ... }
  </code></pre>
  
  <p>How does this 4th, gamma curve acts on the red, green and blue curves? It increases or decreases all of them?</p>
  
  <p>[Edit]</p>
  
  <p>Doing a quick check, first thing I notice is that it acts like a multiplier on colors, maximizing them when raising it, minimizing them when decreasing it. i.e. The image only has tones, and no more brightness level if I maximize the gamma curve. I wonder what is the exact calculation to re-create it on my 3 pixel arrays.</p>