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

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

Definition at line 291 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::VideoSet::ImportConcepts::HandleDoneWalk(), Impala::Core::VideoSet::ImportAudioConcepts::HandleDoneWalk(), Impala::Core::VideoSet::IndexConcepts::HandleDoneWalk(), Impala::Core::ImageSet::IndexConcepts::HandleDoneWalk(), and Impala::Core::VideoSet::ShotSegmenter::WriteShotSimilarity().

00292     {
00293         SimTableType* tmp = new SimTableType(mQuids->Size());
00294         for (int i=0 ; i<NrTables() ; i++)
00295         {
00296             ILOG_DEBUG("Sorting table " << i << " of " << NrTables());
00297             if (mSims[i]->Size() != mQuids->Size())
00298             {
00299                 ILOG_ERROR("ComputeRanks: tables sizes do not match: " <<
00300                            mSims[i]->Size() << " " << mQuids->Size());
00301                 continue;
00302             }
00303             Core::Table::Copy(mRanks[i], mQuids);
00304             Core::Table::Copy(tmp, mSims[i]);
00305             if (descending)
00306                 Column::SortDescending(mRanks[i]->GetColumn1(),
00307                                        tmp->GetColumn1(), tmp->Size());
00308             else
00309                 Column::SortAscending(mRanks[i]->GetColumn1(),
00310                                       tmp->GetColumn1(), tmp->Size());
00311         }
00312         delete tmp;
00313     }

Here is the call graph for this function:


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