Definition at line 1056 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(). 01057 { 01058 if (!mCurMpeg7) 01059 return; 01060 int frame = mKeyframes->GetFrameNr(mCurKey); 01061 int idx = mCurMpeg7->FindShot(frame); 01062 mCurRelevance = (idx == -1) ? 0.5 : mCurMpeg7->Relevance(idx); 01063 String typeString; 01064 if (mCurRelevance < 0.01) 01065 typeString = "negative"; 01066 else if (mCurRelevance > 0.99) 01067 typeString = "positive"; 01068 else 01069 typeString = "skip"; 01070 if (idx == -1) 01071 typeString = "unknown"; 01072 01073 bool isShot = false; 01074 if (idx != -1 && mCurShotFrames.size() != 0) 01075 { 01076 int fFrame = mCurMpeg7->StartFrame(idx); 01077 int lFrame = mCurMpeg7->EndFrame(idx); 01078 if (fFrame != lFrame) 01079 isShot = true; 01080 } 01081 mShotText->SetTextColor(isShot?RelevanceColor(mCurRelevance):oglBLACK); 01082 mImShotWnd->SetBorderBackground(isShot?RelevanceColor(mCurRelevance):0); 01083 mFrameText->SetTextColor(RelevanceColor(mCurRelevance)); 01084 mShotText->SetText("shot " + (isShot ? typeString : "unknown")); 01085 mFrameText->SetText(isShot ? "" : ("fr " + typeString)); 01086 }
Here is the call graph for this function:
|