Solving issue 2342: "Information needed for the color conversion methods of the Color class" ; done by jdesmis

This commit is contained in:
Hombre
2014-04-20 02:28:15 +02:00
parent 83df32e659
commit 2d3e9166f4
2 changed files with 499 additions and 57 deletions

View File

@@ -699,14 +699,6 @@ namespace rtengine {
a = (500.0 * (fx - fy) );
b = (200.0 * (fy - fz) );
}
double Color::f2xyz(double f) {
const double epsilonExpInv3 = 6.0/29.0;
const double kappaInv = 27.0/24389.0; // inverse of kappa
return (f > epsilonExpInv3) ? f*f*f : (116. * f - 16.) * kappaInv;
}
/*
* Gamut mapping algorithm