Implements Impala::Core::Tracking::Tracker.
Definition at line 56 of file TrackerGeneralised.h.
References Impala::Core::Tracking::FrameRegionTable::Add(), Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CH(), Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CW(), Impala::Core::Tracking::FrameRegion::GetRectangle(), Impala::Core::Geometry::Rectangle::mBottom, mHeight, mInput, Impala::Core::Geometry::Rectangle::mLeft, Impala::Core::Geometry::Rectangle::mRight, mScratch, Impala::Core::Geometry::Rectangle::mTop, mTrack, mWidth, NewPosition(), and Impala::Core::Array::Pattern::PatSet().
00057 {
00058 mTrack = resultTrack;
00059 if(mScratch)
00060 delete mScratch;
00061 if(mInput)
00062 delete mInput;
00063 mTrack->Add(*startPos);
00064 mWidth = input->CW();
00065 mHeight = input->CH();
00066 mScratch = new Array::Array2dVec3UInt8(mWidth, mHeight, 0, 0);
00067 mInput = new Array::Array2dVec3Real64(mWidth, mHeight, mWidth, mHeight);
00068
00069 Array::Pattern::PatSet(mInput,input,mWidth/2, mHeight/2);
00070 Geometry::Rectangle r = startPos->GetRectangle();
00071 NewPosition(r.mLeft, r.mTop, r.mRight, r.mBottom);
00072 }
Here is the call graph for this function: