Conversion from CMY through RGB(Rec709) to XYZ (1931).
Definition at line 87 of file ColConvert.h. References Impala::Core::Array::Element::Vec3Real64::X(), Impala::Core::Array::Element::Vec3Real64::Y(), and Impala::Core::Array::Element::Vec3Real64::Z(). Referenced by Impala::Core::Array::Element::Color::ToLab(), Impala::Core::Array::Element::Color::ToLuv(), and Impala::Core::Array::Element::Color::ToXYZ(). 00088 { 00089 // Using rec709 00090 // R = 1-C, G = 1-M, B = 1-Y 00091 00092 double X = 95.045385 00093 - v.X() * 0.161746 - v.Y() * 0.140227 - v.Z() * 0.070754; 00094 double Y = 100.0 00095 - v.X() * 0.083400 - v.Y() * 0.280455 - v.Z() * 0.028301; 00096 double Z = 108.87531 00097 - v.X() * 0.007582 - v.Y() * 0.046742 - v.Z() * 0.372638; 00098 00099 return Vec3Real64(X, Y, Z); 00100 }
Here is the call graph for this function:
|