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

template<class ElemT>
ElemT Impala::Core::Vector::Sum ( VectorTem< ElemT >  v  )  [inline]

Definition at line 18 of file Sum.h.

References Impala::Core::Vector::VectorTem< ElemT >::GetData(), and Impala::Core::Vector::VectorTem< ElemT >::Size().

Referenced by HistogramAccumulation(), and HistogramNormalization().

00019 {
00020     ElemT* p = v.GetData();
00021     ElemT res = 0;
00022     for (int i=0 ; i<v.Size() ; i++)
00023         res += p[i];
00024     return res;
00025 }

Here is the call graph for this function:


Generated on Fri Mar 19 11:27:23 2010 for ImpalaSrc by  doxygen 1.5.1