POV-Ray : Newsgroups : povray.programming : factors for rgb2grey conversion : Re: factors for rgb2grey conversion Server Time
28 Jul 2024 06:18:18 EDT (-0400)
  Re: factors for rgb2grey conversion  
From: Vahur Krouverk
Date: 11 Oct 2002 15:01:43
Message: <3DA720F3.2020108@starman.ee>
ABX wrote:
> On Thu, 10 Oct 2002 20:43:18 +0300, Vahur Krouverk <vkr### [at] starmanee>
> wrote:
> 
>>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/
> 
> 
> fncode.cpp : 0.297,0.589,0.114
> image.cpp  : 0.229,0.587,0.114
> targa.cpp  : 0.30 ,0.59 ,0.11
> libsdl     : 0.299,0.687,0.114 as you suggested
                        ^- 6 or 5?
Last seems to conform YIQ model (if you really meant 0.587), image.cpp 
is probably typo (sum should be 1!), other are a little bit off (but I 
doubt that someone would notice difference).


Post a reply to this message

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