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

virtual void Impala::Core::VideoSet::ImportConcepts::HandleNewFile ( VideoSet vs,
int  fileId,
Stream::RgbDataSrc src 
) [inline, virtual]

Arrived at given DB_FILE in a "normal" walk.

Reimplemented from Impala::Core::VideoSet::Listener.

Definition at line 56 of file ImportConcepts.h.

References Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Add(), Impala::Core::Table::SimilarityTableSet::GetName(), Impala::Core::Table::SimilarityTableSet::GetQuidTable(), Impala::Core::Table::SimilarityTableSet::GetSimTable(), mConceptSet, mSimSet, and Impala::Core::Table::SimilarityTableSet::NrTables().

00057     {
00058         String vidName = vs->GetFile(fileId);
00059         for (int c=0 ; c<mSimSet->NrTables() ; c++)
00060         {
00061             String concept = mSimSet->GetName(c);
00062             SimTableType* table = mSimSet->GetSimTable(c);
00063             String fName;
00064             fName = vs->GetFilePathMpeg7Concept(fileId, mConceptSet,
00065                                                 concept + ".xml", false, true);
00066             if (fName.empty())
00067             {
00068                 continue;
00069             }
00070             Mpeg7Doc mp7(fName, vs->GetDatabase());
00071             for (int s=0 ; s<mp7.NrShots() ; s++)
00072             {
00073                 double sim = mp7.Confidence(s);
00074                 table->Add(sim);
00075             }
00076             if (c == 0)
00077             {
00078                 Table::QuidTable* qTable = mSimSet->GetQuidTable();
00079                 for (int s=0 ; s<mp7.NrShots() ; s++)
00080                 {
00081                     Quid quid = vs->GetQuidFrame(fileId, mp7.StartFrame(s));
00082                     qTable->Add(quid);
00083                 }
00084             }
00085         }
00086     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:29:24 2010 for ImpalaSrc by  doxygen 1.5.1