Definition at line 1936 of file mainUtil.cpp. References Impala::CmdOptions::AddOption(), Impala::Core::Array::Element::CheckNativeTypeSize(), DoAPConfusion(), DoCombineConcepts(), DoConcepts2AllFrames(), DoConcepts2TrecResult(), DoCreateCaAnno(), DoCreateImageSet(), DoDumpParameter(), DoExportAnnoMpeg7(), DoExportAnnoTruth(), DoExportShotMpeg7(), DoImportAnnotations(), DoImportAnnotationsActive(), DoImportAnnotationsOrk(), DoImportAnnoTruth(), DoJudgeConcepts(), DoMapConcepts2Shots(), DoPing(), DoScoreConcepts(), DoScoreConceptsVideo(), DoTrecDropped(), DoTrecJudge(), DoTrecMissing(), DoTrecSet(), DoTrecTopicData(), Impala::CmdOptions::GetArg(), Impala::CmdOptions::GetInstance(), ILOG_DEBUG, ILOG_ERROR, ILOG_ERROR_COUNT, ILOG_VAR, Impala::CmdOptions::Initialise(), and Impala::CmdOptions::ParseArgs(). Referenced by main(). 01937 { 01938 CmdOptions& options = CmdOptions::GetInstance(); 01939 options.Initialise(true, false, true); 01940 options.AddOption(0, "start", "nr", "0"); 01941 options.AddOption(0, "end", "nr", "-1"); 01942 String usageStr = "cmd = \n\n"; 01943 usageStr += " createimageset imageset.txt [imagefile]+\n"; 01944 usageStr += " trectopicdata ...\n"; 01945 usageStr += " trecset year {devel|test} collection.xml\n"; 01946 usageStr += " trecjudge qrel.txt shotresult.txt topiccode\n"; 01947 usageStr += " dumpkeyframes videoset.txt\n"; 01948 usageStr += " dumpsegmentation videoset.txt\n"; 01949 usageStr += " exportshotmpeg7 videoset.txt {25|30000} generateShotNames withKeyframes\n"; 01950 usageStr += " exportannompeg7 videoset.txt {25|30000} concepts.txt\n"; 01951 usageStr += " importannotruth videoset.txt concepts.txt maskfile\n"; 01952 usageStr += " exportannotruth videoset.txt concepts.txt\n"; 01953 usageStr += " importannotations videoset.txt {25|30000} concepts.txt\n"; 01954 usageStr += " exportconceptmpeg7 videoset.txt {25|30000} names.txt\n"; 01955 usageStr += " dumpparameter videoset.txt concepts.txt model featuredef\n"; 01956 usageStr += " apconfusion videoset.txt concepts.txt model feature [mapping]\n"; 01957 usageStr += " scoreconcepts videoset.txt concepts.txt model feature [annotations=concepts.txt] [mapping]\n"; 01958 usageStr += " scoreconceptsvideo videoset.txt annoset.txt names.txt vidStart vidEnd\n"; 01959 usageStr += " combineconcepts videoset.txt concepts.txt model resultName {avg|mil} {feature}+\n"; 01960 usageStr += " mapconcepts2shots videoset.txt conceptSet model feature [mode=max]\n"; 01961 usageStr += " conceptsextra2allframes videoset.txt conceptSet model feature\n"; 01962 usageStr += " concepts2trecresult videoset.txt concepts.txt model feature\n"; 01963 usageStr += " judgeconcepts videoset.txt concepts.txt model feature conceptMapping.txt qrels\n"; 01964 usageStr += " ping host:port\n"; 01965 usageStr += " checknativetypesize\n"; 01966 if (! options.ParseArgs(argc, argv, usageStr, 1)) 01967 return 1; 01968 01969 ILOG_VAR(Impala.Application.Util.mainUtil); 01970 01971 String cmd = options.GetArg(0); 01972 ILOG_DEBUG("cmd = " << cmd); 01973 if (cmd == "createimageset") 01974 DoCreateImageSet(); 01975 else if (cmd == "trectopicdata") 01976 DoTrecTopicData(); 01977 else if (cmd == "trecset") 01978 DoTrecSet(); 01979 else if (cmd == "trecjudge") 01980 DoTrecJudge(); 01981 else if (cmd == "trecdropped") 01982 DoTrecDropped(); 01983 else if (cmd == "trecmissing") 01984 DoTrecMissing(); 01985 else if (cmd == "createcaanno") 01986 DoCreateCaAnno(); 01987 else if (cmd == "exportshotmpeg7") 01988 DoExportShotMpeg7(); 01989 else if (cmd == "exportannompeg7") 01990 DoExportAnnoMpeg7(); 01991 else if (cmd == "importannotruth") 01992 DoImportAnnoTruth(); 01993 else if (cmd == "exportannotruth") 01994 DoExportAnnoTruth(); 01995 else if (cmd == "importannotations") 01996 DoImportAnnotations(); 01997 else if (cmd == "importannotationsork") 01998 DoImportAnnotationsOrk(); 01999 else if (cmd == "importannotationsactive") 02000 DoImportAnnotationsActive(); 02001 else if (cmd == "dumpparameter") 02002 DoDumpParameter(); 02003 else if (cmd == "apconfusion") 02004 DoAPConfusion(); 02005 else if (cmd == "scoreconcepts") 02006 DoScoreConcepts(); 02007 else if (cmd == "scoreconceptsvideo") 02008 DoScoreConceptsVideo(); 02009 else if (cmd == "combineconcepts") 02010 DoCombineConcepts(); 02011 else if (cmd == "mapconcepts2shots") 02012 DoMapConcepts2Shots(); 02013 else if (cmd == "concepts2allframes") 02014 DoConcepts2AllFrames(); 02015 else if (cmd == "concepts2trecresult") 02016 DoConcepts2TrecResult(); 02017 else if (cmd == "judgeconcepts") 02018 DoJudgeConcepts(); 02019 else if (cmd == "ping") 02020 DoPing(); 02021 else if (cmd == "checknativetypesize") 02022 Impala::Core::Array::Element::CheckNativeTypeSize(); 02023 else ILOG_ERROR("Unknown cmd : " << cmd); 02024 02025 return ILOG_ERROR_COUNT; 02026 }
Here is the call graph for this function: ![]()
|