template<class DstArrayT, class SrcArrayT>
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:
|