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

bool Impala::Visualization::SegmentationDocumentGuiAnno::ToRankedShots ( RankTableType rankTable,
int  i,
int  filter 
) [inline, private]

Definition at line 1410 of file SegmentationDocumentGuiAnno.h.

References Impala::Core::VideoSet::Mpeg7Doc::EndFrame(), FindRankedShot(), FindSegFrameShot(), Impala::Core::VideoSet::Mpeg7Doc::FindShot(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get1(), Impala::Core::VideoSet::Keyframes::GetFirstKeyframeShot(), Impala::Core::VideoSet::Keyframes::GetFrameId(), Impala::Core::VideoSet::Keyframes::GetNrKeyframesShot(), Impala::Core::VideoSet::Keyframes::IsRKF(), mCurMpeg7, mKeyframes, mRankedShots, PassTest(), Impala::QuidId(), Impala::Core::VideoSet::Mpeg7Doc::Relevance(), and Impala::Core::VideoSet::Mpeg7Doc::StartFrame().

Referenced by ConstructShotRanking().

01411     {
01412         int frame    = QuidId(rankTable->Get1(i));
01413         int shot     = FindSegFrameShot(frame);
01414         int firstKey = mKeyframes->GetFirstKeyframeShot(shot);
01415         int lastKey  = firstKey + mKeyframes->GetNrKeyframesShot(shot);
01416         int keyfr    = mKeyframes->GetFrameId(frame, firstKey, lastKey);
01417         if (keyfr==-1 || !mKeyframes->IsRKF(keyfr))
01418             return false;
01419 
01420         int firstFrame = -1, lastFrame = -1;
01421         int idx = mCurMpeg7->FindShot(frame);
01422         if (idx != -1)
01423         {
01424             firstFrame = mCurMpeg7->StartFrame(idx);
01425             lastFrame = mCurMpeg7->EndFrame(idx);
01426         }
01427         bool unKnown = (idx == -1);
01428         float relevance = unKnown ? 0.5 : mCurMpeg7->Relevance(idx);
01429         bool positive = relevance > 0.99;
01430         bool negative = relevance < 0.01;
01431         bool skipped = !unKnown && !positive && !negative;
01432         if (PassTest(filter,unKnown,positive,negative,skipped))
01433         {
01434             if (FindRankedShot(shot) == -1){
01435                 mRankedShots.push_back(shot);
01436                 return true;
01437             }
01438         }
01439         return false;
01440     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:46:55 2010 for ImpalaSrc by  doxygen 1.5.1