Axel Richter: Farben

Beitrag lesen

Hallo,

Rotwert mal 0.56, Grünwert mal 0.33, Blauwert mal 0.11, addieren, schon hast Du den Helligkeitswert.

Hast Du Dir da was andreasrum gemerkt? ;-))

http://www.mathworks.com/access/helpdesk/help/techdoc/creating_plots/chimag15.html
Now calculate the monochrome luminance by combining the RGB values according to the NTSC standard, which applies coefficients related to the eye's sensitivity to RGB colors.

I = .2989*rgb_img(:,:,1)...
    +.5870*rgb_img(:,:,2)...
    +.1140*rgb_img(:,:,3);

http://www.fho-emden.de/~hoffmann/gray10012001.pdf
This is the Grayscale Conversion,
according to the Luminance Model
which is used by NTSC and JPEG for
nonlinear data in a gamma working
space, marked by an apostroph:
Y = 0.299R + 0.587G + 0.114B

viele Grüße

Axel