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

void Impala::Application::SDash::IdentificationPane::SuggestTrack ( std::vector< int > &  videoIds,
std::vector< int > &  frameNrs 
) [inline]

Definition at line 382 of file IdentificationPane.h.

References mRoisOfPositives.

Referenced by Impala::Application::SDash::SurveillanceApp::GetTrack().

00383     {
00384         if (!mRoisOfPositives.empty())
00385         {
00386             int prevVideoId = -1;
00387             // walk reversely to obtain most recent frames while at same video
00388             for (int r = mRoisOfPositives.size() - 1; r >= 0 ; r--)
00389                 if (mRoisOfPositives[r].videoId != prevVideoId)
00390                 {
00391                     videoIds.insert(videoIds.begin(), mRoisOfPositives[r].videoId);
00392                     frameNrs.insert(frameNrs.begin(), mRoisOfPositives[r].frameNr);
00393                     prevVideoId = mRoisOfPositives[r].videoId;
00394                 }
00395         }
00396     }


Generated on Thu Jan 13 09:16:05 2011 for ImpalaSrc by  doxygen 1.5.1