POV-Ray : Newsgroups : povray.programming : factors for rgb2grey conversion : Re: factors for rgb2grey conversion Server Time
28 Jul 2024 06:10:54 EDT (-0400)
  Re: factors for rgb2grey conversion  
From: Vahur Krouverk
Date: 10 Oct 2002 13:39:40
Message: <3DA5BC36.9030706@starman.ee>
ABX wrote:
> Would you like to give me values for 'correct/best' conversion from rgb to
> grey value without looking into POV sources ? I have found at least 3
> different versions of this conversion in POV sources and searching Internet I
> found even different. I have connected in PoPOV all occurences of such
> conversion into one define. Not convertable cases I have connected with unique
> constants. Now I'm not sure they use correct values...
> 
> ABX

There is no 'correct' conversion. But YIQ model, which is probably most 
used, uses values 0.299, 0.587, 0.114, which  are pretty close to 
GREY_SCALE macro. I think that best would be to go with these values. 
Strange value 0.229 in image.cpp is probably typo.
For definitive information check out colorspace faq:
http://www.faqs.org/faqs/graphics/colorspace-faq/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.