Shade Mode of Gray in GIMP:
Lightness: Y = (Max(R, G, B) + Min(R, G, B)) / 2
Luminosity: Y = 0.21*R + 0.71*G + 0.07*B
Average: Y = (R + G + B) / 3
The YCC colour space used follows that used by TIFF and JPEG (Rec 601-1):
Y = 0.2989*R + 0.5866*G + 0.1145*B
Cb = -0.1687*R - 0.3312*G + 0.5000*B
Cr = 0.5000*R - 0.4183*G - 0.0816*B
Other Ways:
Y = R*a + G*b + B*c (a+b+c = 1)
Y = MAX(R, G, B) [MatLAB]
Y = G

No comments:
Post a Comment