Definition at line 1005 of file mainRepository.cpp. References Impala::CmdOptions::AddOption(), DoCopyAnnotationTable(), DoCopyAnnotationTableSet(), DoCopyFeatureTable(), DoCopyImageArchive(), DoCopyImageSet(), DoCopyKeyframes(), DoCopyKeywordList(), DoCopySegmentation(), DoCopySimilarityTableSet(), DoCopyVideoSet(), DoCopyVideoSets(), DoDiffAnnotationTable(), DoDiffAnnotationTableSet(), DoDiffFeatureTable(), DoDiffImageArchive(), DoDiffImageSet(), DoDiffKeyframes(), DoDiffKeywordList(), DoDiffSegmentation(), DoDiffSimilarityTableSet(), DoDiffVideoSet(), DoDumpAnnotationTable(), DoDumpAnnotationTableSet(), DoDumpFeatureTable(), DoDumpImageArchive(), DoDumpImageSet(), DoDumpImageSets(), DoDumpKeyframes(), DoDumpKeywordList(), DoDumpSegmentation(), DoDumpSimilarityTableSet(), DoDumpVideoSet(), DoDumpVideoSets(), Impala::CmdOptions::GetArg(), Impala::CmdOptions::GetInstance(), ILOG_DEBUG, ILOG_ERROR, ILOG_VAR, Impala::CmdOptions::Initialise(), and Impala::CmdOptions::ParseArgs(). Referenced by main(). 01006 { 01007 CmdOptions& options = CmdOptions::GetInstance(); 01008 options.Initialise(false, false, true); 01009 options.AddOption(0, "start", "nr", "0"); 01010 options.AddOption(0, "end", "nr", "-1"); 01011 String usageStr = "cmd = \n\n"; 01012 usageStr += " dumpimagesets\n"; 01013 usageStr += " dumpvideosets\n"; 01014 usageStr += " copyvideosets dstLocation\n"; 01015 usageStr += " dumpimageset location imageset.txt\n"; 01016 usageStr += " diffimageset location1 imageset.txt location2\n"; 01017 usageStr += " copyimageset location1 imageset.txt location2\n"; 01018 usageStr += " dumpvideoset location videoset.txt\n"; 01019 usageStr += " diffvideoset location1 videoset.txt location2\n"; 01020 usageStr += " copyvideoset location1 videoset.txt location2\n"; 01021 usageStr += " dumpsegmentation location videoset.txt\n"; 01022 usageStr += " diffsegmentation location1 videoset.txt location2\n"; 01023 usageStr += " copysegmentation location1 videoset.txt location2\n"; 01024 usageStr += " dumpkeyframes location videoset.txt\n"; 01025 usageStr += " diffkeyframes location1 videoset.txt location2\n"; 01026 usageStr += " copykeyframes location1 videoset.txt location2\n"; 01027 usageStr += " dumpstills location videoset.txt\n"; 01028 usageStr += " dumpimagearchive location dataset.txt isFrames container name.raw\n"; 01029 usageStr += " diffimagearchive location1 dataset.txt isFrames container name.raw location2\n"; 01030 usageStr += " copyimagearchive location1 dataset.txt isFrames container name.raw location2\n"; 01031 usageStr += " dumpfeaturetable location dataset.txt isCodebook isIndex walkType feature container\n"; 01032 usageStr += " difffeaturetable location1 dataset.txt isCodebook isIndex walkType feature container location2\n"; 01033 usageStr += " copyfeaturetable location1 dataset.txt isCodebook isIndex walkType feature container location2\n"; 01034 usageStr += " dumpkeywordlist location videoset.txt concepts.txt\n"; 01035 usageStr += " diffkeywordlist location1 videoset.txt concepts.txt location2\n"; 01036 usageStr += " copykeywordlist location1 videoset.txt concepts.txt location2\n"; 01037 usageStr += " dumpannotationtable location dataset.txt quidClass concepts.txt keyword\n"; 01038 usageStr += " diffannotationtable location1 dataset.txt quidClass concepts.txt keyword location2\n"; 01039 usageStr += " copyannotationtable location1 dataset.txt quidClass concepts.txt keyword location2\n"; 01040 usageStr += " dumpannotationtableset location dataset.txt quidClass concepts.txt doTable [maxVidId maxPos maxNeg]\n"; 01041 usageStr += " diffannotationtableset location1 dataset.txt quidClass concepts.txt location2\n"; 01042 usageStr += " copyannotationtableset location1 dataset.txt quidClass concepts.txt location2\n"; 01043 usageStr += " dumpsimilaritytableset location dataset.txt isIndex walkType conceptSet.txt model feature container\n"; 01044 usageStr += " diffsimilaritytableset location1 dataset.txt isIndex walkType conceptSet.txt model feature container location2\n"; 01045 usageStr += " copysimilaritytableset location1 dataset.txt isIndex walkType conceptSet.txt model feature container location2\n"; 01046 if (! options.ParseArgs(argc, argv, usageStr, 1)) 01047 return 1; 01048 01049 ILOG_VAR(Impala.Application.Repository.mainRepository); 01050 01051 String cmd = options.GetArg(0); 01052 ILOG_DEBUG("cmd = " << cmd); 01053 if (cmd == "dumpimagesets") 01054 DoDumpImageSets(); 01055 else if (cmd == "dumpvideosets") 01056 DoDumpVideoSets(); 01057 else if (cmd == "copyvideosets") 01058 DoCopyVideoSets(); 01059 else if (cmd == "dumpimageset") 01060 DoDumpImageSet(); 01061 else if (cmd == "diffimageset") 01062 DoDiffImageSet(); 01063 else if (cmd == "copyimageset") 01064 DoCopyImageSet(); 01065 else if (cmd == "dumpvideoset") 01066 DoDumpVideoSet(); 01067 else if (cmd == "diffvideoset") 01068 DoDiffVideoSet(); 01069 else if (cmd == "copyvideoset") 01070 DoCopyVideoSet(); 01071 else if (cmd == "dumpsegmentation") 01072 DoDumpSegmentation(); 01073 else if (cmd == "diffsegmentation") 01074 DoDiffSegmentation(); 01075 else if (cmd == "copysegmentation") 01076 DoCopySegmentation(); 01077 else if (cmd == "dumpkeyframes") 01078 DoDumpKeyframes(); 01079 else if (cmd == "diffkeyframes") 01080 DoDiffKeyframes(); 01081 else if (cmd == "copykeyframes") 01082 DoCopyKeyframes(); 01083 else if (cmd == "dumpimagearchive") 01084 DoDumpImageArchive(); 01085 else if (cmd == "diffimagearchive") 01086 DoDiffImageArchive(); 01087 else if (cmd == "copyimagearchive") 01088 DoCopyImageArchive(); 01089 else if (cmd == "dumpfeaturetable") 01090 DoDumpFeatureTable(); 01091 else if (cmd == "difffeaturetable") 01092 DoDiffFeatureTable(); 01093 else if (cmd == "copyfeaturetable") 01094 DoCopyFeatureTable(); 01095 else if (cmd == "dumpkeywordlist") 01096 DoDumpKeywordList(); 01097 else if (cmd == "diffkeywordlist") 01098 DoDiffKeywordList(); 01099 else if (cmd == "copykeywordlist") 01100 DoCopyKeywordList(); 01101 else if (cmd == "dumpannotationtable") 01102 DoDumpAnnotationTable(); 01103 else if (cmd == "diffannotationtable") 01104 DoDiffAnnotationTable(); 01105 else if (cmd == "copyannotationtable") 01106 DoCopyAnnotationTable(); 01107 else if (cmd == "dumpannotationtableset") 01108 DoDumpAnnotationTableSet(); 01109 else if (cmd == "diffannotationtableset") 01110 DoDiffAnnotationTableSet(); 01111 else if (cmd == "copyannotationtableset") 01112 DoCopyAnnotationTableSet(); 01113 else if (cmd == "dumpsimilaritytableset") 01114 DoDumpSimilarityTableSet(); 01115 else if (cmd == "diffsimilaritytableset") 01116 DoDiffSimilarityTableSet(); 01117 else if (cmd == "copysimilaritytableset") 01118 DoCopySimilarityTableSet(); 01119 else ILOG_ERROR("Unknown cmd : " << cmd); 01120 01121 return 0; 01122 }
Here is the call graph for this function:
|