Definition at line 1343 of file mainMonetTest.cpp. References Impala::Core::Table::QuidTable::Diff(), Impala::Core::Database::RawDataSet::GetDatabase(), Impala::Core::Database::RawDataSet::GetFilePathSimilarityData(), Impala::CmdOptions::GetInstance(), GetIntInRange(), ILOG_INFO, ILOG_VAR, MakeSimTableMapi(), Impala::Core::Table::Read(), Impala::Core::Table::Table::SetSize(), Impala::Core::Table::SimTableTypeDiff(), Impala::Core::Table::Table::Size(), and Impala::Timer::SplitTime(). Referenced by DoSimilarities(). 01346 { 01347 typedef SimilarityTableSet::SimTableType SimTableType; 01348 CmdOptions& options = CmdOptions::GetInstance(); 01349 01350 ILOG_VAR(Impala.Samples.MonetTest.CheckOneSimTable); 01351 Timer timer; 01352 01353 SimTableType table(0); 01354 String path = 01355 vidSet->GetFilePathSimilarityData("Frames", conceptSet, model, 01356 feature, fileId, 01357 concept + "_sim.tab", false, false); 01358 if (path.empty()) 01359 return; 01360 Core::Table::Read(&table, path, vidSet->GetDatabase()); 01361 ILOG_INFO("Did file in " << timer.SplitTime()); 01362 ILOG_INFO("table size = " << table.Size()); 01363 01364 // ignore startScore for now 01365 //int startScore = options.GetInt("startScore"); 01366 int numberScores = GetIntInRange("numberScores", 0, table.Size(), true); 01367 table.SetSize(numberScores); 01368 quidTab->SetSize(numberScores); 01369 01370 SimTableType* simTab2 = 0; 01371 QuidTable* quidTab2 = 0; 01372 MakeSimTableMapi(vidSet, fileId, conceptSet, model, feature, concept, conn, 01373 simTab2, quidTab2); 01374 ILOG_INFO("Did mapi at " << timer.SplitTime()); 01375 if (quidTab->Size() == quidTab2->Size() + 1) 01376 { 01377 ILOG_INFO("Adjusting size to " << quidTab2->Size()); 01378 quidTab->SetSize(quidTab2->Size()); 01379 } 01380 if (quidTab->Diff(quidTab2) == 0) 01381 { 01382 ILOG_INFO("No differences in quids"); 01383 } 01384 else 01385 { 01386 //quidTab->Dump(vidSet, 0, -1); 01387 //quidTab2->Dump(vidSet, 0, -1); 01388 } 01389 if (table.Size() == simTab2->Size() + 1) 01390 { 01391 ILOG_INFO("Adjusting size to " << simTab2->Size()); 01392 table.SetSize(simTab2->Size()); 01393 } 01394 if (SimTableTypeDiff(&table, simTab2) == 0) 01395 ILOG_INFO("No differences in sims"); 01396 delete simTab2; 01397 delete quidTab2; 01398 }
Here is the call graph for this function:
|