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

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

Definition at line 502 of file mainTrecSearch.cpp.

References Impala::FileNamePath(), Impala::FileReadString(), Impala::Core::Database::RawDataSet::GetDatabase(), Impala::Core::Database::RawDataSet::GetFilePathVideoIndex(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetString(), ILOG_ENDACTION, ILOG_LEVEL_INFO, ILOG_STARTACTION, ILOG_WARN, Impala::Core::Table::SimilarityTableSet::LoadRanks(), mThreadRanking, and mVidSet.

Referenced by InitData().

00503     {
00504         CmdOptions& options = CmdOptions::GetInstance();
00505         String tfile = options.GetString("threadFile");
00506         if (!tfile.empty()) 
00507         {
00508             ILOG_STARTACTION("reading threads", ILOG_LEVEL_INFO);
00509             std::vector<String> threadNames;
00510             FileReadString(std::back_inserter(threadNames), tfile);
00511             mThreadRanking = new SimilarityTableSet(threadNames,0);
00512             String fileBase = mVidSet->GetFilePathVideoIndex
00513                                ("threads", threadNames[0]+"_rank",false, false);
00514             mThreadRanking->LoadRanks(FileNamePath(fileBase),
00515                                       mVidSet->GetDatabase());
00516             // to convert to binary
00517             //mConceptRanking->SaveRanks(FileNamePath(fileBase), true);
00518             ILOG_ENDACTION("reading threads");
00519           
00520         }
00521         else
00522         {
00523             ILOG_WARN("semantic threads disabled. No semantic threads found.");
00524             mThreadRanking = 0;
00525         }
00526     }

Here is the call graph for this function:


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