Definition at line 127 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, Impala::Core::Table::Bayes::mIsImageSet, 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(). 00128 { 00129 std::cout << "SimilarityTableSet " << mGenreSimSet->GetDescription() << std::endl << std::endl; 00130 00131 //for (int j=0 ; j<mGenreSimSet->NrTables() ; j++) 00132 //_ASSERT(mGenreNum == mGenreSimSet->NrTables()); 00133 for (int j=0 ; j<mGenreNum ; j++) 00134 { 00135 //SimilarityTableSet::SimTableType* genreSimTable = mGenreSimSet->GetSimTable(j); 00136 genreSimTable[j] = mGenreSimSet->GetSimTable(j); 00137 00138 std::cout << "table " << j << ", name = " << mGenreSimSet->GetName(j) 00139 << std::endl; 00140 if (genreSimTable[j]->Size() != mQuidTable->Size()) 00141 { 00142 //ILOG_ERROR("DumpRanking: simtable size doesn't match"); 00143 printf("DumpRanking: simtable size doesn't match\n"); 00144 continue; 00145 } 00146 String genre = mGenreSimSet->GetName(j); 00147 for (int i=mStart ; i<mEnd ; i++) 00148 { 00149 Quid quid = mQuidTable->Get1(i); 00150 //std::cout << i << ", "; 00151 std::cout << genre << ", "; 00152 00153 if (!mIsImageSet) 00154 { 00155 int keyId = mKeyframes->GetFrameId(quid); 00156 if (keyId != -1) 00157 std::cout << FileNameBase(mKeyframes->GetName(keyId)) << ", "; 00158 else 00159 std::cout << mVidSet->QuidToString(quid, true) << ", "; 00160 } 00161 std::cout << genreSimTable[j]->Get1(i) << std::endl; 00162 } 00163 std::cout << std::endl; 00164 } 00165 00166 }
Here is the call graph for this function:
|