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

void Impala::Visualization::SegmentationDocumentGuiAnno::UpdateRelevance (  )  [inline, private]

Definition at line 1031 of file SegmentationDocumentGuiAnno.h.

References Impala::Core::VideoSet::Mpeg7Doc::EndFrame(), Impala::Core::VideoSet::Mpeg7Doc::FindShot(), Impala::Core::VideoSet::Keyframes::GetFrameNr(), mCurKey, mCurMpeg7, mCurRelevance, mCurShotFrames, mFrameText, mImShotWnd, mKeyframes, mShotText, Impala::Core::VideoSet::Mpeg7Doc::Relevance(), RelevanceColor(), OglGui::OglWindow::SetBorderBackground(), OglGui::TextArea::SetText(), OglGui::TextArea::SetTextColor(), and Impala::Core::VideoSet::Mpeg7Doc::StartFrame().

Referenced by DoAnno(), and HandleNewShot().

01032     {
01033                 if (!mCurMpeg7)
01034                         return;
01035         int frame = mKeyframes->GetFrameNr(mCurKey);
01036         int idx = mCurMpeg7->FindShot(frame);
01037         mCurRelevance = (idx == -1) ? 0.5 : mCurMpeg7->Relevance(idx);
01038         String typeString;
01039         if (mCurRelevance < 0.01)
01040             typeString = "negative";
01041         else if (mCurRelevance > 0.99)
01042             typeString = "positive";
01043         else
01044             typeString = "skip";
01045          if (idx == -1)
01046              typeString = "unknown";
01047 
01048         bool isShot = false;
01049         if (idx != -1 && mCurShotFrames.size() != 0)
01050         {
01051             int fFrame = mCurMpeg7->StartFrame(idx);
01052             int lFrame = mCurMpeg7->EndFrame(idx);
01053             if (fFrame != lFrame)
01054                 isShot = true;
01055         }
01056         mShotText->SetTextColor(isShot?RelevanceColor(mCurRelevance):oglBLACK);
01057         mImShotWnd->SetBorderBackground(isShot?RelevanceColor(mCurRelevance):0);
01058         mFrameText->SetTextColor(RelevanceColor(mCurRelevance));
01059         mShotText->SetText("shot " + (isShot ? typeString : "unknown"));
01060         mFrameText->SetText(isShot ? "" : ("fr " + typeString));
01061     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:24:59 2011 for ImpalaSrc by  doxygen 1.5.1