Re: 24 bit RGB to 16 bit gray conversion
Posted by
Jeremy Winston-2 on
Nov 14, 2005; 3:58pm
URL: http://imagej.273.s1.nabble.com/24-bit-RGB-to-16-bit-gray-conversion-tp3704473p3704478.html
Robert Rohland wrote:
> Art -
>
> Not too difficult. Gray scale is just the average of the red, green, and
> blue channels.
Robert,
That's not quite right. Gray scale can be computed from
RGB as the *weighted* average of the RG&B, taking into account
the sensitivity of the eye's rods and cones to those three
colors. Cf.
http://documents.wolfram.com/applications/digitalimage/FunctionIndex/ToGrayLevel.htmlHTH,
-Jeremy