Definition at line 1112 of file mainMonetTest.cpp. References Impala::Core::Feature::FeatureTable::Diff(), Impala::CmdOptions::GetArg(), Impala::Core::Database::RawDataSet::GetDatabase(), Impala::Core::Database::RawDataSet::GetFilePathFeatureData(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetNrArg(), ILOG_ERROR, ILOG_INFO, ILOG_NDC_POP, ILOG_NDC_PUSH, ILOG_VAR, MakeFeatureTableMapi(), Impala::Core::Feature::FeatureTable::MakeFromFile(), Impala::Core::VideoSet::MakeVideoSet(), Impala::Core::Database::RawDataSet::NrFiles(), and Impala::Timer::SplitTime(). Referenced by mainMonetTest(). 01113 { 01114 ILOG_VAR(Impala.Samples.MonetTest.DoCheckFeatures); 01115 CmdOptions& options = CmdOptions::GetInstance(); 01116 if (options.GetNrArg() < 6) 01117 { 01118 ILOG_ERROR("Need more parameters"); 01119 return; 01120 } 01121 01122 String vidSetName = options.GetArg(4); 01123 VideoSet* vidSet = Core::VideoSet::MakeVideoSet(vidSetName); 01124 FeatureDefinition def(options.GetArg(5)); 01125 01126 for (int v=0 ; v<vidSet->NrFiles() ; v++) 01127 { 01128 ILOG_NDC_PUSH("v=" << v); 01129 Timer timer; 01130 // reversed order to reduce memory usage 01131 FeatureTable* tab2 = MakeFeatureTableMapi(vidSet, v, def, conn); 01132 ILOG_INFO("Did mapi at " << timer.SplitTime()); 01133 01134 String fName = vidSet->GetFilePathFeatureData("Frames", def, v, false, 01135 -1, false, false); 01136 if (fName.empty()) 01137 { 01138 ILOG_ERROR("Unable to find " << def.AsString()); 01139 delete tab2; 01140 ILOG_NDC_POP; 01141 continue; 01142 } 01143 FeatureTable* tab = 01144 Core::Feature::FeatureTable::MakeFromFile(def, fName, 01145 vidSet->GetDatabase()); 01146 ILOG_INFO("Did file at " << timer.SplitTime()); 01147 01148 if (tab->Diff(tab2) == 0) 01149 ILOG_INFO("No differences"); 01150 delete tab; 01151 delete tab2; 01152 ILOG_NDC_POP; 01153 } 01154 delete vidSet; 01155 }
Here is the call graph for this function:
|