Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!usc!jarthur!uunet!mcsun!ukc!axion!galadriel!marks From: marks@galadriel.bt.co.uk (Mark Shackleton) Newsgroups: comp.graphics Subject: Re: RGB to gray Message-ID: <1990Nov20.105041.19140@galadriel.bt.co.uk> Date: 20 Nov 90 10:50:41 GMT References: <1990Nov19.050822.12771@metro.ucc.su.OZ.AU> Organization: RT611 BTRL, Martlesham Heath, Ipswich, UK Lines: 15 From article <1990Nov19.050822.12771@metro.ucc.su.OZ.AU>, by andrew@ee.su.oz.au (Andrew Ho): > I am trying to convert some full color images (RGB) into > gray level images (because I hope to get some non-colorful > laser printouts after doing the convertion). > > Are there any algorithms/lookup tables to do the "RGB to > gray level" matching ? > Use: Y = .299 R + .587 G + .114 B This will give the luminance (greylevel) 'Y' for the given RGB values. Regards, Mark Shackleton