POV-Ray : Newsgroups : povray.beta-test : Gamma of interpolated colors in color maps : Re: Gamma of interpolated colors in color maps Server Time
29 Jun 2024 06:31:57 EDT (-0400)
  Re: Gamma of interpolated colors in color maps  
From: clipka
Date: 6 Jan 2011 22:48:19
Message: <4d268d03$1@news.povray.org>
Am 04.01.2011 14:19, schrieb scott:

>> For a "perceptually linear" gradient, the formula would be changed to:
>>
>> q = 1-p;
>> temp1 = pow(color1, 1/gamma);
>> temp2 = pow(color2, 1/gamma);
>> tempR = p * color1 + q * color2;
>> result = pow(tempR, gamma);
>>
>> where gamma would be a value around 2.5.
>
> OOC why 2.5? CIELAB uses a value of 3 to computer the "lightness".

Maybe this is just CIE's way of avoiding potential trouble if someone 
tries to feed negative values into the formula for converting from CIE 
XYZ to L*a*b*.

Note that for instance Hunter Lab uses a gamma of 2.0.


Post a reply to this message

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