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

template<class DstArrayT, class SrcArrayT>
DstArithT Impala::Core::Array::Trait::M9poHUEw< DstArrayT, SrcArrayT >::DoIt ( const SrcArithT R,
const SrcArithT G,
const SrcArithT B,
const SrcArithT Rx,
const SrcArithT Gx,
const SrcArithT Bx,
const SrcArithT Ry,
const SrcArithT Gy,
const SrcArithT By 
) [inline]

Actual operation.

Definition at line 39 of file M9poHUEw.h.

References Impala::Core::Array::Element::E1Sqrt().

00042     {
00043         SrcArithT div = (B*B+G*G+R*R-G*R-B*R-B*G);
00044         SrcArithT f_Obx = (G-B)*Rx+(B-R)*Gx+(R-G)*Bx;
00045         SrcArithT f_Oby = (G-B)*Ry+(B-R)*Gy+(R-G)*By;
00046 
00047         SrcArithT f_Hue = .5*sqrt(3.)*Element::E1Sqrt(f_Obx*f_Obx + f_Oby*f_Oby) / div;
00048         return f_Hue;
00049     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:04:26 2010 for ImpalaSrc by  doxygen 1.5.1