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

void Impala::Core::VideoSet::KfrMotionExtractor::CalcTPLMean ( int  bWidth,
int  bHeight 
) [inline]

Definition at line 650 of file KfrMotionExtractor.h.

References m_TPLMean, m_verbose2, m_Weight, and TPL_NUM.

Referenced by HandleNewFrame().

00651     {
00652         for (int indexOfTPL=0;indexOfTPL<TPL_NUM;indexOfTPL++)
00653         {
00654             m_TPLMean[indexOfTPL] = 0;
00655             for (int i = 0; i < bWidth * bHeight; i ++)
00656             m_TPLMean[indexOfTPL] += m_Weight[indexOfTPL][i];
00657         }
00658 
00659         if (m_verbose2)
00660         {
00661             printf("Template Mean Values TPL[0...2]: ");
00662             for (int indexOfTPL=0;indexOfTPL<TPL_NUM;indexOfTPL++)
00663             {
00664                 printf("%.2f ",m_TPLMean[indexOfTPL]);
00665             }
00666             printf("\n\n");
00667         }
00668 
00669     }


Generated on Fri Mar 19 11:30:21 2010 for ImpalaSrc by  doxygen 1.5.1