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

Real64 Impala::Visualization::RotorBrowser::ThreadClusterSelector::GetThresholdForShotId ( int  shot  )  [inline]

Definition at line 145 of file ThreadClusterSelector.h.

References Impala::Visualization::RotorBrowser::RotorBrowserContext::GetName(), Impala::Core::Trec::Thread::GetShotPosition(), Impala::Visualization::RotorBrowser::RotorBrowserContext::GetThread(), Impala::Core::Trec::Thread::GetType(), ILOG_WARN, mContext, Impala::Core::Trec::Thread::RANK, Impala::Core::Trec::Thread::SHOTS, and Impala::Core::Trec::Thread::VISUAL.

Referenced by GetNumberForThreshold(), and GetThresholdForNumber().

00146     {
00147         // some semi-evil calling to convert shot into quid, into position,
00148         // into similarity... This ought to be optimized.
00149         Thread *t = mContext->GetThread();
00150         int position = t->GetShotPosition(shot);
00151         if (t >= 0)
00152         {
00153             if (t->GetType() == Thread::SHOTS)
00154                 return ((ThreadShots*)t)->GetShotScore(position);
00155             if (t->GetType() == Thread::RANK)
00156                 return ((ThreadRank*)t)->GetShotScore(position);
00157             if (t->GetType() == Thread::VISUAL)
00158                 return ((ThreadVisualSimilarity*)t)->GetSimilarity(shot);
00159         }
00160         else
00161         {
00162             ILOG_WARN("Could not find position for shot " << shot <<
00163                       " in thread " << mContext->GetName());
00164             return 1.0;
00165         }
00166         // RvB: Added as compiler complained: no return
00167         return 1.0;
00168     }

Here is the call graph for this function:


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