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

double Impala::Core::Tracking::Trace ( const Array::Array2dScalarReal64 *  matrix  ) 

Definition at line 20 of file Classifier.h.

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

Referenced by Impala::Core::Tracking::Classifier::AddLambdaDiagonal().

00021 {
00022     const double* src = matrix->CPB();
00023     double trace = 0;
00024     int i;
00025     for(i=0 ; i<matrix->CW()*matrix->CH() ; i++)
00026     {
00027         trace += src[i];
00028     }
00029     return trace;
00030 }

Here is the call graph for this function:


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