title: Difference between brightness and lightness in Image Manipulation
body: <p>I have an application to adjust the lightness/brightness of the image and the saturation and i found this link <a href="http://blog.gskinner.com/archives/2007/12/colormatrix_cla.html" rel="nofollow noreferrer">here</a> which uses android colormatrix to adjust the brightness. Here's the function to adjust brightness in colormatrix.</p>
  
  <pre><code>public static void adjustBrightness(ColorMatrix cm, float value) {
  value = cleanValue(value,50);
  if (value == 0) {
      return;
  }
  
  float[] mat = new float[]
  { 
      1,0,0,0,value,
      0,1,0,0,value,
      0,0,1,0,value,
      0,0,0,1,0
  };
  cm.postConcat(new ColorMatrix(mat));
  </code></pre>
  
  <p>}</p>
  
  <p>But i don't know if there's a difference with lightness in brightness. Because in GIMP software there is lightness and brightness. See the screenshot below. If there's another method to adjust lightness/brigthness saturation at the same time I would be happy to see it :).</p>
  
  <p><a href="https://i.stack.imgur.com/jqqAh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jqqAh.png" alt="enter image description here"></a> <a href="https://i.stack.imgur.com/I7utW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/I7utW.png" alt="enter image description here"></a></p>