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

void Impala::Application::Table::DoAppendFeatureTable (  ) 

Definition at line 453 of file mainTable.cpp.

References Impala::atol(), Impala::CmdOptions::GetArg(), Impala::Core::Feature::FeatureTable::GetFeatureVectorLength(), Impala::Util::Database::GetInstance(), Impala::CmdOptions::GetInstance(), ILOG_VAR, Impala::Core::Table::Read(), Impala::Core::Table::Table::Size(), and Impala::Core::Table::Write().

Referenced by mainTable().

00454 {
00455     typedef Core::Feature::FeatureDefinition FeatureDef;
00456     typedef Core::Feature::FeatureTable FeatureTable;
00457 
00458     ILOG_VAR(Impala.Application.Table.DoAppendFeatureTable);
00459     CmdOptions& options = CmdOptions::GetInstance();
00460     String dstName = options.GetArg(1);
00461     String srcName = options.GetArg(2);
00462     int nr = atol(options.GetArg(3));
00463 
00464     Util::Database* db = &Util::Database::GetInstance();
00465     FeatureTable srcTable(srcName);
00466     Core::Table::Read(&srcTable, srcName, db);
00467 
00468     FeatureTable dstTable(dstName, nr*srcTable.Size(),
00469                           srcTable.GetFeatureVectorLength());
00470     for (int i=0 ; i<nr ; i++)
00471         dstTable.Append(&srcTable);
00472 
00473     Core::Table::Write(&dstTable, dstName, db, true);
00474 }

Here is the call graph for this function:


Generated on Fri Mar 19 10:50:53 2010 for ImpalaSrc by  doxygen 1.5.1