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

void Impala::Core::Table::BayesFusion::DumpGenreSimilarityTableSet (  )  [inline]

Definition at line 122 of file BayesFusion.h.

References Impala::FileNameBase(), genreSimTable, Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get1(), Impala::Core::Table::SimilarityTableSet::GetDescription(), Impala::Core::VideoSet::Keyframes::GetFrameId(), Impala::Core::VideoSet::Keyframes::GetName(), Impala::Core::Table::SimilarityTableSet::GetName(), Impala::Core::Table::SimilarityTableSet::GetSimTable(), Impala::Core::Table::Bayes::mEnd, Impala::Core::Table::Bayes::mGenreNum, mGenreSimSet, mKeyframes, mQuidTable, Impala::Core::Table::Bayes::mStart, Impala::Core::Table::Bayes::mVidSet, Impala::Core::VideoSet::VideoSet::QuidToString(), and Impala::Core::Table::Table::Size().

Referenced by DoFusion().

00123     { 
00124         std::cout << "SimilarityTableSet " << mGenreSimSet->GetDescription() << std::endl << std::endl;
00125 
00126         //for (int j=0 ; j<mGenreSimSet->NrTables() ; j++)
00127         //_ASSERT(mGenreNum == mGenreSimSet->NrTables());
00128         for (int j=0 ; j<mGenreNum ; j++)
00129         {
00130             //SimilarityTableSet::SimTableType* genreSimTable = mGenreSimSet->GetSimTable(j);
00131             genreSimTable[j] = mGenreSimSet->GetSimTable(j);
00132 
00133             std::cout << "table " << j << ", name = " << mGenreSimSet->GetName(j)
00134                       << std::endl;
00135             if (genreSimTable[j]->Size() != mQuidTable->Size())
00136             {
00137                 //ILOG_ERROR("DumpRanking: simtable size doesn't match");
00138                 printf("DumpRanking: simtable size doesn't match\n");
00139                 continue;
00140             }
00141             String genre = mGenreSimSet->GetName(j);
00142             for (int i=mStart ; i<mEnd ; i++)
00143             {
00144                 Quid quid = mQuidTable->Get1(i);
00145                 //std::cout << i << ", ";
00146                 std::cout << genre << ", ";
00147                 int keyId = mKeyframes->GetFrameId(quid);
00148                 if (keyId != -1)
00149                     std::cout << FileNameBase(mKeyframes->GetName(keyId)) << ", ";
00150                 else
00151                     std::cout << mVidSet->QuidToString(quid, true) << ", ";
00152                 std::cout << genreSimTable[j]->Get1(i) << std::endl;
00153             }
00154             std::cout << std::endl;
00155         }
00156         
00157     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:20:28 2010 for ImpalaSrc by  doxygen 1.5.1