Definition at line 19 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(). 00020 { 00021 // compute trace; 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:
|