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

void Impala::Core::Tracking::TrackerBackFore::ComputeBackgroundResponse ( Array::Array2dScalarReal64 background  )  [inline, private]

Definition at line 370 of file TrackerBackFore.h.

References Impala::Core::Tracking::KernelSet::Apply(), Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CH(), Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CPB(), Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CW(), Impala::Core::Geometry::Rectangle::Height(), ILOG_DEBUG, mBack, mGabor, mInput, mSampleSpacing, and Impala::Core::Geometry::Rectangle::Width().

Referenced by NewPosition(), and UpdateObject().

00371     {
00372         // get response of the background (eq.5)
00373         int count = 0;
00374         for(int b=0 ; b<4 ; b++)
00375         {
00376             int w,h;
00377             w = mBack[b].Width()/mSampleSpacing;
00378             h = mBack[b].Height()/mSampleSpacing;
00379             ILOG_DEBUG("rect = "<<mBack[b]<<", w="<<w<<", h="<<h);
00380             int i,j;
00381             for(j=1 ; j<h ; j++)
00382             {
00383                 for(i=1 ; i<w; i++)
00384                 {
00385                     double* data = background.CPB(0, count);
00386                     count++;
00387                     mGabor.Apply(data, *mInput, 
00388                                  mBack[b].mLeft+(i*mSampleSpacing),
00389                                  mBack[b].mTop+(j*mSampleSpacing));
00390                 }
00391             }
00392             ILOG_DEBUG("count = "<<count);
00393         }
00394         while(count < background.CH()) // this actually never occurs
00395         {
00396             double* data = background.CPB(0, count);
00397             for(int j=0 ; j<background.CW() ; j++)
00398                 data[j] = 0;
00399             count++;
00400         }
00401     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:22:50 2010 for ImpalaSrc by  doxygen 1.5.1