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

template<class DstArrayT, class SrcArrayT>
DstArithT Impala::Core::Array::Trait::M9poCw< DstArrayT, SrcArrayT >::DoIt ( const SrcArithT E,
const SrcArithT El,
const SrcArithT Ell,
const SrcArithT Ex,
const SrcArithT Elx,
const SrcArithT Ellx,
const SrcArithT Ey,
const SrcArithT Ely,
const SrcArithT Elly 
) [inline]

Actual operation.

Definition at line 41 of file M9poCw.h.

References Impala::Core::Array::Element::E1Sqrt(), and Impala::Core::Array::Trait::M9poCw< DstArrayT, SrcArrayT >::mScale.

00044     {
00045         SrcArithT Clx_a = Elx*E - El*Ex;
00046         SrcArithT Cly_a = Ely*E - El*Ey;
00047         SrcArithT Clw_a = Clx_a*Clx_a + Cly_a*Cly_a;
00048         SrcArithT Cllx_a = Ellx*E - Ell*Ex;
00049         SrcArithT Clly_a = Elly*E - Ell*Ey;
00050         SrcArithT Cllw_a = Cllx_a*Cllx_a + Clly_a*Clly_a;
00051         SrcArithT Cw_a = Element::E1Sqrt(Clw_a + Cllw_a);
00052         SrcArithT norm = E*E/mScale;
00053         return Cw_a/norm;
00054         //return Element::E1Log(Cw_a/norm + 1);
00055         //return Element::E1Log(100000000*Cw_a+1) - Element::E1Log(100000000*norm+1); 
00056 }

Here is the call graph for this function:


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