Definition at line 223 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 SetBackground(), and UpdateBackGroundModel(). 00224 { 00225 double* dst = mean->CPB(); 00226 int i; 00227 for(i=0 ; i<samples->CW() ; i++) 00228 dst[i] = 0; 00229 for(i=0 ; i<samples->CH() ; i++) 00230 { 00231 const double* src = samples->CPB(0, i); 00232 for(int j=0 ; j<samples->CW() ; j++) 00233 dst[j] += src[j]; 00234 } 00235 for(i=0 ; i<samples->CW() ; i++) 00236 dst[i] /= samples->CH(); 00237 }
Here is the call graph for this function:
|