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

template<class DstArrayT, class SrcArrayT>
void Impala::Core::Array::Trait::M9N4poFSph< DstArrayT, SrcArrayT >::DoIt ( DstStorT FThetax,
DstStorT FThetay,
DstStorT FPhix,
DstStorT FPhiy,
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 41 of file M9N4poFSph.h.

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

00045     {
00046         SrcArithT I1 = Element::E1Sqrt(R*R + G*G + B*B);
00047         SrcArithT I2 = Element::E1Sqrt(R*R + G*G);
00048         SrcArithT I1I2 = I1*I2;
00049 
00050         *FThetax = (I2 > 0) ? (R*Gx - G*Rx) / I2 : I2;
00051         *FThetay = (I2 > 0) ? (R*Gy - G*Ry) / I2 : I2;
00052         *FPhix = (I1I2 > 0) ? (G*(B*Gx - G*Bx) + R*(B*Rx - R*Bx)) / (I1I2) : 0;
00053         *FPhiy = (I1I2 > 0) ? (G*(B*Gy - G*By) + R*(B*Ry - R*By)) / (I1I2) : 0;
00054     }

Here is the call graph for this function:


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