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

template<class ArrayT>
std::vector<ArrayT*> Impala::Core::Array::InvSphericalDer ( std::vector< ArrayT * >  src  )  [inline]

input: R, Rx, Ry, G, Gx, Gy, B, Bx, and By.

output: Theta_x, Theta_y, Phi_x, Phi_y, r_x, r_y as used by Joost van de Weijer ported from matlab code at http://lear.inrialpes.fr/people/vandeweijer/research1

Note:
:only tested for ArrayT = Array2dScalarReal64

Definition at line 28 of file InvSphericalDer.h.

Referenced by InvQuasi().

00029 {
00030     Trait::M9N4poFSph<ArrayT, ArrayT> traitThetaPhi;
00031     std::vector<ArrayT*> resList;
00032     resList = Pattern::PatM9N4PixOp<ArrayT>(src[0], src[3], src[6],
00033                                             src[1], src[4], src[7],
00034                                             src[2], src[5], src[8],
00035                                             traitThetaPhi);
00036 
00037     ArrayT* r_x = ArrayClone<ArrayT>(src[0]);
00038     Trait::M9poFSphericalRx<ArrayT, ArrayT> traitRx;
00039     Pattern::PatM9PixOp<ArrayT>(r_x, src[0], src[3], src[6],
00040                                      src[1], src[4], src[7],
00041                                      src[2], src[5], src[8],
00042                                      traitRx);
00043     resList.push_back(r_x);
00044 
00045     ArrayT* r_y = ArrayClone<ArrayT>(src[0]);
00046     Trait::M9poFSphericalRy<ArrayT, ArrayT> traitRy;
00047     Pattern::PatM9PixOp<ArrayT>(r_y, src[0], src[3], src[6],
00048                                      src[1], src[4], src[7],
00049                                      src[2], src[5], src[8],
00050                                      traitRy);
00051     resList.push_back(r_y);
00052     return resList;}


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