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

void Impala::Core::Tracking::TrackerBackFore::Initialize ( Array::Array2dVec3UInt8 startImage,
Tracking::FrameRegion startPos,
FrameRegionTable resultTrack 
) [inline, virtual]

Implements Impala::Core::Tracking::Tracker.

Definition at line 78 of file TrackerBackFore.h.

References Impala::Core::Tracking::FrameRegionTable::Add(), Impala::Core::Tracking::FrameRegion::GetRectangle(), Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::H(), Impala::Core::Geometry::Rectangle::mBottom, mHeight, mInitialLikelyhood, mInput, Impala::Core::Geometry::Rectangle::mLeft, mReconstruction, Impala::Core::Geometry::Rectangle::mRight, Impala::Core::Geometry::Rectangle::mTop, mTrack, mWidth, NewPosition(), Impala::Core::Array::Pattern::PatSet(), and Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::W().

00079     {
00080         mTrack = resultTrack;
00081         // TODO: configure the color model, the types of filters and the number of orientations
00082         if (mInput)
00083             delete mInput;
00084         mWidth = startImage->W();
00085         mHeight = startImage->H();
00086 
00087         mTrack->Add(*startPos);
00088 
00089         mInput = new Array::Array2dVec3Real64(mWidth, mHeight, 21, 21);
00090         Array::Pattern::PatSet(mInput, startImage, 2, 2);
00091 
00092         if (mReconstruction)
00093             delete mReconstruction;
00094         mReconstruction = new Array::Array2dVec3UInt8(mWidth, mHeight, 0, 0);
00095         Geometry::Rectangle r = startPos->GetRectangle();
00096         NewPosition(r.mLeft, r.mTop, r.mRight, r.mBottom);
00097         mInitialLikelyhood = 0;
00098     }

Here is the call graph for this function:


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