Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

Vec3Real64 Impala::Core::Array::Element::ColOOO2RGB ( const Vec3Real64 &  v  )  [inline]

Conversion from OOO (Geusebroek Thesis) to RGB(Rec709).

ColOOO2RGB.gif

For transformation from XYZ to RGB, see ColXYZ2RGB.

Definition at line 369 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::ToCMY(), Impala::Core::Array::Element::Color::ToHSI(), and Impala::Core::Array::Element::Color::ToRGB().

00370 {
00371     double R = v.X() * 328.084 + v.Y() * 469.182 + v.Z() * 687.853;
00372     double G = v.X() * 199.794 + v.Y() * 172.242 + v.Z() * -202.904;
00373     double B = v.X() * 314.533 + v.Y() * -441.212 + v.Z() * 291.574;
00374 
00375     return Vec3Real64(R, G, B);
00376 }

Here is the call graph for this function:


Generated on Fri Mar 19 11:00:01 2010 for ImpalaSrc by  doxygen 1.5.1