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

template<class DstArrayT, class SrcArrayT>
DstArithT Impala::Core::Array::Trait::M9poANG2w< 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 M9poANG2w.h.

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

00042     {
00043         SrcArithT I = (R*R+G*G+B*B);
00044         SrcArithT fw2 = Rx*Rx+Ry*Ry+Gx*Gx+Gy*Gy+Bx*Bx+By*By;
00045         SrcArithT A1 = R*Rx+G*Gx+B*Bx;
00046         SrcArithT A2 = R*Ry+G*Gy+B*By;
00047         SrcArithT f_r = (A1*A1+A2*A2)/I;
00048         SrcArithT f_ang = Element::E1Sqrt(fw2-f_r);
00049         SrcArithT f_ang2 = f_ang/Element::E1Sqrt(I);
00050         return f_ang2;
00051     }

Here is the call graph for this function:


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