i was guessing probably one of the two ITU-R's (BT.601 or 709):
Code: Select all
Procedure.l RGBtoLuma601(red,green,blue) ;ITU-R BT.601, Matlab
ProcedureReturn (red * 0.299) + (green * 0.587) + (blue * 0.114)
EndProcedure
Procedure.l RGBtoLuma709(red,green,blue) ;ITU-R BT.709
ProcedureReturn (red * 0.2126) + (green * 0.7152) + (blue * 0.0722)
EndProcedure
So I checked in Photoshop and it converts to grayscale from the following:
R $FF0000 -> $81
G $00FF00 -> $DC
B $0000FF -> $46
(just create blank image filled with the color, then Image->Mode->Grayscale, and i used Eyedropper tool to then check the gray color)
But im not sure if its possible to deduce their weighting just from that!? it's not important of course but i can't help but wonder lol

So then i checked the two ITU versions...
BT.601:
R $FF0000 -> $4C
G $00FF00 -> $96
B $0000FF -> $1D
BT.709:
R $FF0000 -> $36
G $00FF00 -> $B6
B $0000FF -> $12
Hmm, Photoshop secret sauce! can anyone figure out the weighting!? (is it even possible, seeing as the three values are added together!?)
