Definition at line 71 of file SearchJudgeGui.h. References OglGui::StringSelector::AddString(), Impala::Core::Trec::SearchResult::Describe(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get1(), Impala::Core::Trec::SearchResult::GetAveragePrecision(), Impala::Core::Trec::SearchTopic::GetCurTopicNum(), Impala::Core::Trec::Thread::GetLength(), Impala::Core::VideoSet::Segmentation::GetName(), Impala::Core::Trec::SearchJudge::GetNrJudged(), Impala::Core::Trec::SearchJudge::GetNrRelevant(), Impala::Core::Trec::Thread::GetShot(), info(), Impala::Core::Trec::SearchResult::Judge(), Impala::Core::Trec::SearchResult::Load(), Impala::MakeString(), mApText1, mApText2, mInfoText, mJudge, mSearchResult1, mSearchResult2, mShots, mStringSelector1, mStringSelector2, mTrecTopic, Impala::Core::Trec::SearchResult::NrElements(), OglGui::StringSelector::RemoveStrings(), SetJudgeShot(), OglGui::TextArea::SetText(), and Impala::Core::Table::Table::Size(). Referenced by Impala::Application::WindowTrecSearch::TabSelectionEvent(). 00073 { 00074 int i; 00075 double ap; 00076 std::string topic = mTrecTopic->GetCurTopicNum(); 00077 int nrRelevant = mJudge->GetNrRelevant(topic); 00078 int nrJudged = mJudge->GetNrJudged(topic); 00079 std::string info = std::string("Topic ") + topic; 00080 info += std::string(", nr relevant = ") + MakeString(nrRelevant); 00081 info += std::string(", nr judged = ") + MakeString(nrJudged); 00082 mInfoText->SetText(info); 00083 SetJudgeShot(-1, -1); 00084 00085 // result1 part 00086 std::vector<std::string> sNames; 00087 int lastShot = -1; 00088 for (i=0 ; i<result1->Size() ; i++) 00089 { 00090 std::string shot = mShots->GetName(result1->Get1(i)); 00091 sNames.push_back(shot); 00092 } 00093 mSearchResult1.Load(topic, sNames); 00094 mSearchResult1.Judge(mJudge); 00095 ap = mSearchResult1.GetAveragePrecision(); 00096 mApText1->SetText(std::string("AP = ") + MakeString(ap)); 00097 mStringSelector1->RemoveStrings(); 00098 for (i=0 ; i<mSearchResult1.NrElements() ; i++) 00099 mStringSelector1->AddString(mSearchResult1.Describe(i)); 00100 00101 if (result2 == 0) 00102 return; 00103 00104 // result2 part 00105 sNames.clear(); 00106 lastShot = -1; 00107 int nr = result2->GetLength(); 00108 if (nr > 1000) // NIST submission is 1000 00109 nr = 1000; 00110 for (i=0 ; i<nr ; i++) 00111 { 00112 std::string shot = mShots->GetName(result2->GetShot(i)); 00113 sNames.push_back(shot); 00114 } 00115 mSearchResult2.Load(topic, sNames); 00116 mSearchResult2.Judge(mJudge); 00117 ap = mSearchResult2.GetAveragePrecision(); 00118 mApText2->SetText(std::string("AP = ") + MakeString(ap)); 00119 mStringSelector2->RemoveStrings(); 00120 for (i=0 ; i<mSearchResult2.NrElements() ; i++) 00121 mStringSelector2->AddString(mSearchResult2.Describe(i)); 00122 }
Here is the call graph for this function:
|