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

void Impala::Core::Table::SimilarityTableSet::ComputeRanks ( bool  descending  )  [inline]

Definition at line 305 of file SimilarityTableSet.h.

References Impala::Core::Table::Copy(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::GetColumn1(), ILOG_DEBUG, ILOG_ERROR, mQuids, mRanks, mSims, NrTables(), Impala::Core::Table::Table::Size(), Impala::Core::Column::SortAscending(), and Impala::Core::Column::SortDescending().

Referenced by Impala::Core::Table::BayesFusion::ExecuteBayesFusion(), Impala::Persistency::SimilarityTableSetRepositoryInMonet::Get(), Impala::Core::ImageSet::CombineConcepts::HandleDoneDir(), Impala::Core::VideoSet::CombineConcepts::HandleDoneFile(), Impala::Core::VideoSet::ImportConcepts::HandleDoneWalk(), Impala::Core::VideoSet::ImportAudioConcepts::HandleDoneWalk(), Impala::Core::VideoSet::IndexConcepts::HandleDoneWalk(), Impala::Core::ImageSet::IndexConcepts::HandleDoneWalk(), and Impala::Core::VideoSet::ShotSegmenter::WriteShotSimilarity().

00306     {
00307         SimTableType* tmp = new SimTableType(mQuids->Size());
00308         for (int i=0 ; i<NrTables() ; i++)
00309         {
00310             ILOG_DEBUG("Sorting table " << i << " of " << NrTables());
00311             if (mSims[i]->Size() != mQuids->Size())
00312             {
00313                 ILOG_ERROR("ComputeRanks: tables sizes do not match: " <<
00314                            mSims[i]->Size() << " " << mQuids->Size());
00315                 continue;
00316             }
00317             Core::Table::Copy(mRanks[i], mQuids);
00318             Core::Table::Copy(tmp, mSims[i]);
00319             if (descending)
00320                 Column::SortDescending(mRanks[i]->GetColumn1(),
00321                                        tmp->GetColumn1(), tmp->Size());
00322             else
00323                 Column::SortAscending(mRanks[i]->GetColumn1(),
00324                                       tmp->GetColumn1(), tmp->Size());
00325         }
00326         delete tmp;
00327     }

Here is the call graph for this function:


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