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

String Impala::Core::IDash::VideoSetWrapper::GetAsRankingList ( SimilarityTableSet simSet,
String  baseUri,
String  caseId,
String  qSetId,
String  vidId,
String  conceptName,
int  maxNumber,
double  probabilityThreshold 
) [inline]

Definition at line 199 of file VideoSetWrapper.h.

References Impala::Core::Table::SimilarityTableSet::FindQuid(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get1(), GetAsRankingItem(), Impala::Core::Table::SimilarityTableSet::GetRankTable(), Impala::Core::Table::SimilarityTableSet::GetSimTable(), ILOG_ERROR, IsInTargetSet(), and Impala::Core::Table::Table::Size().

00202     {
00203         RankTableType* rankTable = simSet->GetRankTable(conceptName);
00204         if (!rankTable)
00205         {
00206             ILOG_ERROR("No ranking for " << conceptName);
00207             return "ERROR: 400: No ranking for " + conceptName;
00208         }
00209         SimTableType* simTable = simSet->GetSimTable(conceptName);
00210 
00211         String s = "<?xml version=\"1.0\"?>";
00212         s += "<ranking xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns=\"http://www.i-dash.eu/ActionData\">";
00213         s += "  <queryURL xlink:type=\"simple\" xlink:href=\"" + baseUri
00214             + "cases/" + caseId + "/concepts/" + conceptName + "\" />";
00215         s += "  <rankingItems>";
00216 
00217         int nrAdded = 0;
00218         for (int i=0 ; i<rankTable->Size() && nrAdded<maxNumber; i++)
00219         {
00220             Quid q = rankTable->Get1(i);
00221             int idx = simSet->FindQuid(q);
00222             double sim = simTable->Get1(idx);
00223             if (sim < probabilityThreshold)
00224                 break;
00225             if (IsInTargetSet(q, baseUri, caseId, qSetId, vidId))
00226             {
00227                 String item = GetAsRankingItem(q, sim, conceptName);
00228                 s += item;
00229                 nrAdded++;
00230             }
00231         }
00232         s += "  </rankingItems>";
00233         s += "</ranking>";
00234         return s;
00235     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:13:14 2010 for ImpalaSrc by  doxygen 1.5.1