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

void Impala::Application::WindowTrecSearch::InitDataConceptRanking (  )  [inline, private]

Definition at line 451 of file mainTrecSearch.cpp.

References Impala::FileNameBase(), Impala::FileNamePath(), Impala::FileReadString(), Impala::Core::Database::RawDataSet::GetDatabase(), Impala::Core::Database::RawDataSet::GetFilePathVideoIndex(), ILOG_LEVEL_DEBUG, ILOG_STARTACTION, ILOG_WARN, Impala::Core::Table::SimilarityTableSet::LoadRanks(), Impala::Core::Table::SimilarityTableSet::MakeFromFile(), mConceptFeature, mConceptModel, mConceptRanking, mConceptSetName, mVidSet, and mYear.

Referenced by InitData().

00452     {
00453         mConceptRanking = 0;
00454         if (mConceptSetName.empty())
00455         {
00456             ILOG_WARN("concept reading disabled. No concepts available.");
00457             return;
00458         }
00459 
00460         ILOG_STARTACTION("reading concept ranking", ILOG_LEVEL_DEBUG);
00461         if (mYear <= 2006)
00462         {
00463             std::vector<String> conceptNames;
00464             FileReadString(std::back_inserter(conceptNames), mConceptSetName);
00465             mConceptRanking = new SimilarityTableSet(conceptNames,0);
00466             String dir = FileNameBase(mConceptSetName);
00467             String fileBase =
00468                 mVidSet->GetFilePathVideoIndex(dir,conceptNames[0]+"_rank",
00469                                                false,false);
00470             mConceptRanking->LoadRanks(FileNamePath(fileBase),
00471                                        mVidSet->GetDatabase());
00472             // to convert to binary
00473             // mConceptRanking->SaveRanks(FileNamePath(fileBase), true);
00474         }
00475         else
00476         {
00477             mConceptRanking = SimilarityTableSet::MakeFromFile
00478                     (mVidSet,mConceptSetName,mConceptModel,mConceptFeature);
00479         }
00480         // if (mConceptRanking)
00481         //    StripConceptNames();
00482         // 3-9-2007: removed for Cees.2007 compliance.
00483     }

Here is the call graph for this function:


Generated on Fri Mar 19 10:38:31 2010 for ImpalaSrc by  doxygen 1.5.1