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

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

Definition at line 456 of file ConfusionMatrix.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().

00457     {
00458         std::cout << "SimilarityTableSet " << mConceptSimSet->GetDescription() << std::endl << std::endl;
00459 
00460         //for (int k=0 ; k<mConceptSimSet->NrTables() ; k++)
00461         //_ASSERT(mConceptNum == mConceptSimSet->NrTables());
00462         for (int k=0 ; k<mConceptNum ; k++)
00463         {
00464             //SimilarityTableSet::SimTableType* conceptSimTable = mConceptSimSet->GetSimTable(k);
00465             conceptSimTable[k] = mConceptSimSet->GetSimTable(k);
00466 
00467             std::cout << "table " << k << ", name = " << mConceptSimSet->GetName(k)
00468                       << std::endl;
00469             if (conceptSimTable[k]->Size() != mQuidTable->Size())
00470             {
00471                 //ILOG_ERROR("DumpRanking: simtable size doesn't match");
00472                 printf("DumpRanking: simtable size doesn't match\n");
00473                 continue;
00474             }
00475             String concept = mConceptSimSet->GetName(k);
00476             for (int i=mStart ; i<mEnd ; i++)
00477             {
00478                 Quid quid = mQuidTable->Get1(i);
00479                 //std::cout << i << ", ";
00480                 std::cout << concept << ", ";
00481 
00482                 if (!mIsImageSet)
00483                 {
00484                     int keyId = mKeyframes->GetFrameId(quid);
00485                     if (keyId != -1)
00486                         std::cout << FileNameBase(mKeyframes->GetName(keyId)) << ", ";
00487                     else
00488                         std::cout << mVidSet->QuidToString(quid, true) << ", ";
00489                 }
00490                 std::cout << conceptSimTable[k]->Get1(i) << std::endl;
00491             }
00492             std::cout << std::endl;
00493         }
00494     }

Here is the call graph for this function:


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