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

void Impala::Core::Tracking::Classifier::AddLambdaDiagonal ( Array::Array2dScalarReal64 *&  matrixDst,
const Array::Array2dScalarReal64 matrixSrc 
) [inline, private]

Definition at line 308 of file Classifier.h.

References Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CH(), Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CPB(), Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CW(), mLambdaFactor, and Impala::Core::Tracking::Trace().

Referenced by UpdateClassifiers().

00310     {
00311         // add portion of trace
00312         double trace = Trace(matrixSrc) * mLambdaFactor;
00313         int i;
00314         for(i=0 ; i<matrixDst->CH() ; i++)
00315         {
00316             double* dst = matrixDst->CPB(0, i);
00317             const double* src = matrixSrc->CPB(0, i);
00318             for(int j=0 ; j<matrixDst->CW() ; j++)
00319             {
00320                 dst[j] = src[j];
00321                 if(i==j)
00322                     dst[j] += trace;
00323             }
00324         }
00325     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:21:02 2011 for ImpalaSrc by  doxygen 1.5.1