I have to create a lightness histogram of an image. I have already maked a RGB Histogram
On Internet i found these values:
Luminance (standard, objective): (0.2126*R) + (0.7152*G) + (0.0722*B)
Luminance (perceived option 1): (0.299*R + 0.587*G + 0.114*B)
Luminance (perceived option 2, slower to calculate): sqrt( 0.241*R^2 + 0.691*G^2 + 0.068*B^2 )
I make lightness histogram throught these values or luminance is a different stuff?
Or maybe i use java libraries with methods to take L value (lightness) from a Lab space, converting the sRGB space?