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

void Impala::Visualization::SegmentationDocumentGuiAnno::ConstructShotRanking ( bool  exclAnnotatedMode  )  [inline, private]

Definition at line 1442 of file SegmentationDocumentGuiAnno.h.

References Impala::Core::Table::SimilarityTableSet::GetRankTable(), mCurConcept, mCurRankShot, mRankAll, mRankedShots, mRankVSB, mSimSet, NEGATIVE_BIT, Impala::Core::Table::SimilarityTableSet::NrTables(), POSITIVE_BIT, OglGui::ValueScrollBar::SetMinMaxValue(), SKIPPED_BIT, Impala::Core::Table::SimilarityTableSet::TableSize(), ToRankedShots(), and UNKNOWN_BIT.

Referenced by ButtonSelectionEvent(), ConstructNewVideoSimSet(), and HandleNewConcept().

01443     {
01444         mRankedShots.clear();
01445         mCurRankShot = 0;
01446         mRankAll = !exclAnnotatedMode;
01447 
01448         if (!mSimSet)
01449             return;
01450 
01451         int tableNr = (mSimSet->NrTables()==1) ? 0 : mCurConcept;
01452         RankTableType* rankTable = mSimSet->GetRankTable(tableNr);
01453 
01454         int nShots = 0;
01455         int sz = mSimSet->TableSize();
01456         for (int i=0; i<sz; i++)
01457         {
01458             int filter = exclAnnotatedMode ? UNKNOWN_BIT :
01459                          UNKNOWN_BIT|POSITIVE_BIT|NEGATIVE_BIT|SKIPPED_BIT;
01460             if (ToRankedShots(rankTable, i, filter))
01461                 nShots++;
01462         }
01463         if (mRankVSB)
01464             mRankVSB->SetMinMaxValue(0,nShots-1);
01465     }

Here is the call graph for this function:


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