Definition at line 900 of file mainTable.cpp. References Impala::CmdOptions::GetArg(), Impala::Core::Database::RawDataSet::GetDatabase(), Impala::Util::Database::GetInstance(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetInt(), Impala::CmdOptions::GetString(), Impala::Core::Table::SimilarityTableSet::MakeFromFile(), Impala::Core::ImageSet::MakeImageSet(), and Impala::Core::VideoSet::MakeVideoSet(). Referenced by mainTable(). 00901 { 00902 typedef Core::Table::SimilarityTableSet SimilarityTableSet; 00903 00904 CmdOptions& options = CmdOptions::GetInstance(); 00905 Core::Database::RawDataSet* dataSet = 0; 00906 String setName = options.GetString("videoSet"); 00907 if (! setName.empty()) 00908 dataSet = Core::VideoSet::MakeVideoSet(setName); 00909 setName = options.GetString("imageSet"); 00910 if (! setName.empty()) 00911 dataSet = Core::ImageSet::MakeImageSet(setName); 00912 Util::Database* db = &Util::Database::GetInstance(); 00913 if (dataSet) 00914 db = dataSet->GetDatabase(); 00915 String path = options.GetArg(1); 00916 SimilarityTableSet* simSet = 00917 Core::Table::SimilarityTableSet::MakeFromFile(path, db); 00918 //simSet->Dump(true); 00919 simSet->DumpRanking(dataSet, options.GetInt("start"), options.GetInt("end")); 00920 delete simSet; 00921 }
Here is the call graph for this function:
|