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: ABX
Date: 11 Oct 2002 02:49:32
Message: <ucscqusm5ol0l24tvf5o41t0b3kiuhem7i@4ax.com>
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

Not a big difference but could be nice to hold unique values in whole package.
I included such modification in PoPOV.

ABX


Post a reply to this message

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