|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Fri, 11 Oct 2002 08:47:11 +0200, ABX <abx### [at] abxartpl> wrote:
>I included such modification in PoPOV.
^^^^^^
I like the name of your project :)
Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG e-mail : pet### [at] tagpovrayorg
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> 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/
Interesting link. The "Colour Space Conversions" link is broken.
Going up, I found a link to http://www.inforamp.net/~poynton/ which seems
interesting, with a gamma and a color FAQ in various formats.
--
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
http://jove.prohosting.com/~philho/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
|
|