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

AnnotationTableSet* Impala::Samples::MonetTest::MakeAnnotationTableSetMapi ( VideoSet *  vidSet,
String  conceptSet,
bool  readTables,
int  quidClass,
Connection *  conn 
)

Definition at line 293 of file mainMonetTest.cpp.

References Impala::Core::Database::RawDataSet::GetSetName(), ILOG_ERROR, ILOG_INFO, ILOG_VAR, MakeAnnotationTableMapi(), and MakeKeywordListMapi().

Referenced by DoCheckAnnotations().

00295 {
00296     ILOG_VAR(Impala.Samples.MonetTest.MakeAnnotationTableSetMapi);
00297 
00298     KeywordList keywords = MakeKeywordListMapi(vidSet->GetSetName(), conceptSet,
00299                                                conn);
00300     ILOG_INFO("Nr keywords = " << keywords.size());
00301 
00302     AnnotationTableSet* res = new AnnotationTableSet();
00303     int nrRead = 0;
00304     for (int i=0 ; i<keywords.size() ; i++)
00305     {
00306         ILOG_INFO("Doing table " << keywords[i]);
00307         AnnotationTable* table = 0;
00308         if (readTables)
00309         {
00310             table = MakeAnnotationTableMapi(vidSet, conceptSet, keywords[i],
00311                                             quidClass, conn);
00312             if (table != 0)
00313                 nrRead++;
00314         }
00315         if (table == 0)
00316             table = new AnnotationTable(keywords[i], 0);
00317         res->Add(table);
00318     }
00319     if (readTables && (nrRead == 0))
00320         ILOG_ERROR("No tables found");
00321     return res;
00322 }

Here is the call graph for this function:


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