Conversion from XYZ (1931) to Lab, D65 reference white point.
Definition at line 178 of file ColConvert.h. References f4ab(), Impala::Core::Array::Element::Vec3Real64::X(), Xn, Impala::Core::Array::Element::Vec3Real64::Y(), Y2L(), Yn, Impala::Core::Array::Element::Vec3Real64::Z(), and Zn. Referenced by Impala::Core::Array::Element::Color::ToLab(). 00179 { 00180 Vec3Real64 n = v / Vec3Real64(Xn, Yn, Zn); 00181 00182 double L = Y2L(n.Y()); 00183 00184 double fnX = f4ab(n.X()); 00185 double fnY = f4ab(n.Y()); 00186 double fnZ = f4ab(n.Z()); 00187 00188 double a = 500.0 * (fnX - fnY); 00189 double b = 200.0 * (fnY - fnZ); 00190 return Vec3Real64(L, a, b); 00191 }
Here is the call graph for this function:
|