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

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

Definition at line 169 of file BayesFusion.h.

References conceptSimTable, Impala::FileNameBase(), 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::mConceptNum, mConceptSimSet, Impala::Core::Table::Bayes::mEnd, 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().

00170     {
00171         std::cout << "SimilarityTableSet " << mConceptSimSet->GetDescription() << std::endl << std::endl;
00172 
00173         //for (int k=0 ; k<mConceptSimSet->NrTables() ; k++)
00174         //_ASSERT(mConceptNum == mConceptSimSet->NrTables());
00175         for (int k=0 ; k<mConceptNum ; k++)
00176         {
00177             //SimilarityTableSet::SimTableType* conceptSimTable = mConceptSimSet->GetSimTable(k);
00178             conceptSimTable[k] = mConceptSimSet->GetSimTable(k);
00179 
00180             std::cout << "table " << k << ", name = " << mConceptSimSet->GetName(k)
00181                       << std::endl;
00182             if (conceptSimTable[k]->Size() != mQuidTable->Size())
00183             {
00184                 //ILOG_ERROR("DumpRanking: simtable size doesn't match");
00185                 printf("DumpRanking: simtable size doesn't match\n");
00186                 continue;
00187             }
00188             String concept = mConceptSimSet->GetName(k);
00189             for (int i=mStart ; i<mEnd ; i++)
00190             {
00191                 Quid quid = mQuidTable->Get1(i);
00192                 //std::cout << i << ", ";
00193                 std::cout << concept << ", ";
00194 
00195                 if (!mIsImageSet)
00196                 {
00197                     int keyId = mKeyframes->GetFrameId(quid);
00198                     if (keyId != -1)
00199                         std::cout << FileNameBase(mKeyframes->GetName(keyId)) << ", ";
00200                     else
00201                         std::cout << mVidSet->QuidToString(quid, true) << ", ";
00202                 }
00203                 std::cout << conceptSimTable[k]->Get1(i) << std::endl;
00204             }
00205             std::cout << std::endl;
00206         }
00207     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:20:48 2011 for ImpalaSrc by  doxygen 1.5.1