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

int Impala::Application::Util::mainUtil ( int  argc,
char *  argv[] 
)

Definition at line 1493 of file mainUtil.cpp.

References Impala::CmdOptions::AddOption(), Impala::Core::Array::Element::CheckNativeTypeSize(), DoAPConfusion(), DoCombineConcepts(), DoConcepts2TrecResult(), DoDumpParameter(), DoDumpStills(), DoExportAnnoMpeg7(), DoExportConceptMpeg7(), DoExportShotMpeg7(), DoImportAnnotations(), DoImportAnnotationsActive(), DoImportAnnotationsOrk(), DoJudgeConcepts(), DoMapConcepts2Shots(), DoPing(), DoScoreConcepts(), DoScoreConceptsVideo(), DoTrecJudge(), DoTrecSet(), DoTrecTopicData(), Impala::CmdOptions::GetArg(), Impala::CmdOptions::GetInstance(), ILOG_DEBUG, ILOG_ERROR, ILOG_VAR, Impala::CmdOptions::Initialise(), and Impala::CmdOptions::ParseArgs().

Referenced by main().

01494 {
01495     CmdOptions& options = CmdOptions::GetInstance();
01496     options.Initialise(false, false, true);
01497     options.AddOption(0, "start", "nr", "0");
01498     options.AddOption(0, "end", "nr", "-1");
01499     String usageStr = "cmd = \n\n";
01500     usageStr += "  trectopicdata ...\n";
01501     usageStr += "  trecset year {devel|test} collection.xml\n";
01502     usageStr += "  trecjudge qrel.txt shotresult.txt topiccode\n";
01503     usageStr += "  dumpstills videoset.txt\n";
01504     usageStr += "  dumpkeyframes videoset.txt\n";
01505     usageStr += "  dumpsegmentation videoset.txt\n";
01506     usageStr += "  exportshotmpeg7 videoset.txt {25|30000} generateShotNames withKeyframes\n";
01507     usageStr += "  exportannompeg7 videoset.txt {25|30000} concepts.txt\n";
01508     usageStr += "  importannotations videoset.txt {25|30000} concepts.txt\n";
01509     usageStr += "  exportconceptmpeg7 videoset.txt {25|30000} names.txt\n";
01510     usageStr += "  dumpparameter videoset.txt concepts.txt model featuredef\n";
01511     usageStr += "  apconfusion videoset.txt annoset.txt names.txt [mapping]\n";
01512     usageStr += "  scoreconcepts videoset.txt annoset.txt names.txt [mapping]\n";
01513     usageStr += "  scoreconceptsvideo videoset.txt annoset.txt names.txt vidStart vidEnd\n";
01514     usageStr += "  combineconcepts videoset.txt concepts.txt model resultName {avg|mil} {feature}+\n";
01515     usageStr += "  mapconcepts2shots videoset.txt conceptSet model feature\n";
01516     usageStr += "  concepts2trecresult videoset.txt names.txt\n";
01517     usageStr += "  judgeconcepts videoset.txt names.txt conceptMapping.txt qrels\n";
01518     usageStr += "  ping\n";
01519     usageStr += "  checknativetypesize\n";
01520     if (! options.ParseArgs(argc, argv, usageStr, 1))
01521         return 1;
01522 
01523     ILOG_VAR(Impala.Application.Util.mainUtil);
01524 
01525     String cmd = options.GetArg(0);
01526     ILOG_DEBUG("cmd = " << cmd);
01527     if (cmd == "trectopicdata")
01528         DoTrecTopicData();
01529     else if (cmd == "trecset")
01530         DoTrecSet();
01531     else if (cmd == "trecjudge")
01532         DoTrecJudge();
01533     else if (cmd == "dumpstills")
01534         DoDumpStills();
01535     else if (cmd == "exportshotmpeg7")
01536         DoExportShotMpeg7();
01537     else if (cmd == "exportannompeg7")
01538         DoExportAnnoMpeg7();
01539     else if (cmd == "importannotations")
01540         DoImportAnnotations();
01541     else if (cmd == "importannotationsork")
01542         DoImportAnnotationsOrk();
01543     else if (cmd == "importannotationsactive")
01544         DoImportAnnotationsActive();
01545     else if (cmd == "exportconceptmpeg7")
01546         DoExportConceptMpeg7();
01547     else if (cmd == "dumpparameter")
01548         DoDumpParameter();
01549     else if (cmd == "apconfusion")
01550         DoAPConfusion();
01551     else if (cmd == "scoreconcepts")
01552         DoScoreConcepts();
01553     else if (cmd == "scoreconceptsvideo")
01554         DoScoreConceptsVideo();
01555     else if (cmd == "combineconcepts")
01556         DoCombineConcepts();
01557     else if (cmd == "mapconcepts2shots")
01558         DoMapConcepts2Shots();
01559     else if (cmd == "concepts2trecresult")
01560         DoConcepts2TrecResult();
01561     else if (cmd == "judgeconcepts")
01562         DoJudgeConcepts();
01563     else if (cmd == "ping")
01564         DoPing();
01565     else if (cmd == "checknativetypesize")
01566         Impala::Core::Array::Element::CheckNativeTypeSize();
01567     else ILOG_ERROR("Unknown cmd : " << cmd);
01568 
01569     return 0;
01570 }

Here is the call graph for this function:


Generated on Fri Mar 19 10:52:17 2010 for ImpalaSrc by  doxygen 1.5.1