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

void Impala::Core::Tracking::TrackerBackFore::UpdateObject (  )  [inline, private]

Definition at line 227 of file TrackerBackFore.h.

References Impala::Core::Tracking::KernelSet::Apply(), ComputeBackgroundResponse(), Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CPB(), Impala::Core::Geometry::Rectangle::Height(), mBackMaxPoints, mClassifier, mDebugFile, mDimensionality, mGabor, mInput, Impala::Core::Geometry::Rectangle::mLeft, mPosition, mSampleOffset, mSampleSpacing, mStats, Impala::Core::Geometry::Rectangle::mTop, Impala::Core::Geometry::PointZ::mX, Impala::Core::Geometry::PointZ::mY, Impala::Util::TimeStats::SelectGroup(), Impala::Util::TimeStats::StartTime(), Impala::Util::TimeStats::StopTime(), Impala::Core::Tracking::Classifier::Update(), Impala::Core::Tracking::Classifier::UpdateVec(), Impala::Core::Geometry::Rectangle::Width(), and Impala::Core::Tracking::Classifier::WriteSimpleDebug().

Referenced by Process().

00228     {
00229         // Get gabor response in the foreground (eq.4)
00230         // blend with the current foreground (eq.17)
00231         int w,h;
00232         w = mPosition.Width()/mSampleSpacing;
00233         h = mPosition.Height()/mSampleSpacing;
00234 
00235         mStats.SelectGroup(0);
00236         mStats.StartTime();
00237         Array::Array2dScalarReal64 response(mDimensionality, 1, 0, 0);
00238         int i,j;
00239         for(j=0 ; j<h ; j++)
00240         {
00241             for(i=0 ; i<w; i++)
00242             {
00243                 int x = mPosition.mLeft+mSampleOffset.mX+(i*mSampleSpacing);
00244                 int y = mPosition.mTop+mSampleOffset.mY+(j*mSampleSpacing);
00245                 mGabor.Apply(response.CPB(0, 0), *mInput, x, y);
00246                 mClassifier->UpdateVec(response,i+j*w);
00247             }
00248         }
00249         mStats.StopTime();
00250 
00251         mStats.SelectGroup(1);
00252         mStats.StartTime();
00253         Array::Array2dScalarReal64 background(mDimensionality, mBackMaxPoints, 0, 0);
00254         ComputeBackgroundResponse(background);
00255         mClassifier->Update(background);
00256         mClassifier->WriteSimpleDebug(mDebugFile);
00257     }

Here is the call graph for this function:


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