Re: RGB - grayscale (was Re: Remarks about graphics in lyx1.2.0cvs)

2002-02-22 Thread Asger K. Alstrup Nielsen
On Thu, 21 Feb 2002, Mike Ressler wrote: Actually, the better way to do this is (xv Postscript code) gray = 0.32 * red + 0.5 * green + 0.18 * blue or perhaps (NTSC) gray = 0.30 * red + 0.59 * green + 0.11 * blue Either gives a better match to a human's RGB to luminance

Re: RGB -> grayscale (was Re: Remarks about graphics in lyx1.2.0cvs)

2002-02-22 Thread Asger K. Alstrup Nielsen
On Thu, 21 Feb 2002, Mike Ressler wrote: > Actually, the better way to do this is (xv Postscript code) > > gray = 0.32 * red + 0.5 * green + 0.18 * blue > > or perhaps (NTSC) > > gray = 0.30 * red + 0.59 * green + 0.11 * blue > > Either gives a better match to a human's RGB to

RGB - grayscale (was Re: Remarks about graphics in lyx1.2.0cvs)

2002-02-21 Thread Mike Ressler
On Thu, 21 Feb 2002, Asger K. Alstrup Nielsen wrote: On Thu, 21 Feb 2002, Angus Leeming wrote: and the problem is now defining an appropriate mapping from the colour colourmap to a grayscale or monochrome one. I'm not sure what the problem is, but if you want to convert from color to

Re: RGB - grayscale (was Re: Remarks about graphics in lyx1.2.0cvs)

2002-02-21 Thread Angus Leeming
On Thursday 21 February 2002 5:55 pm, Mike Ressler wrote: On Thu, 21 Feb 2002, Asger K. Alstrup Nielsen wrote: On Thu, 21 Feb 2002, Angus Leeming wrote: and the problem is now defining an appropriate mapping from the colour colourmap to a grayscale or monochrome one. I'm not sure

RGB -> grayscale (was Re: Remarks about graphics in lyx1.2.0cvs)

2002-02-21 Thread Mike Ressler
On Thu, 21 Feb 2002, Asger K. Alstrup Nielsen wrote: > On Thu, 21 Feb 2002, Angus Leeming wrote: > > and the problem is now defining an appropriate mapping from the colour > > colourmap to a grayscale or monochrome one. > > I'm not sure what the problem is, but if you want to convert from > color

Re: RGB -> grayscale (was Re: Remarks about graphics in lyx1.2.0cvs)

2002-02-21 Thread Angus Leeming
On Thursday 21 February 2002 5:55 pm, Mike Ressler wrote: > On Thu, 21 Feb 2002, Asger K. Alstrup Nielsen wrote: > > On Thu, 21 Feb 2002, Angus Leeming wrote: > > > and the problem is now defining an appropriate mapping from the colour > > > colourmap to a grayscale or monochrome one. > > > > I'm