Definition at line 3032 of file mainRepository.cpp. References Impala::CmdOptions::AddOption(), DoCopyAnnotationTable(), DoCopyAnnotationTableSet(), DoCopyBestFile(), DoCopyFeatureTable(), DoCopyFold(), DoCopyFrameHashes(), DoCopyImageArchive(), DoCopyImageArchiveSpecial(), DoCopyImageSet(), DoCopyImageSetSpecial(), DoCopyKernelMatrix(), DoCopyKeyframes(), DoCopyKeywordList(), DoCopyModel(), DoCopyMpeg7Shot(), DoCopyQuidTable(), DoCopySegmentation(), DoCopySimilarityTableSet(), DoCopyStills(), DoCopySvmProblem(), DoCopyVideoSet(), DoCopyVideoSets(), DoCorrectAnnotationTableSet(), DoDeleteAnnotationTable(), DoDeleteAnnotationTableSet(), DoDeleteFeatureTable(), DoDeleteFold(), DoDeleteImageArchive(), DoDeleteImageArchiveSpecial(), DoDeleteImageSet(), DoDeleteImageSetSpecial(), DoDeleteKernelMatrix(), DoDeleteKeyframes(), DoDeleteModel(), DoDeleteMpeg7Annotation(), DoDeleteMpeg7Concept(), DoDeleteMpeg7Shot(), DoDeleteQuidTable(), DoDeleteSegmentation(), DoDeleteSimilarityTableSet(), DoDeleteStills(), DoDeleteSvmProblem(), DoDeleteVideoInfoFiles(), DoDeleteVideoSet(), DoDiffAllParameterFile(), DoDiffAnnotationTable(), DoDiffAnnotationTableSet(), DoDiffBestFile(), DoDiffFeatureTable(), DoDiffFikSvm(), DoDiffFold(), DoDiffFrameHashes(), DoDiffImageArchive(), DoDiffImageArchiveSpecial(), DoDiffImageSet(), DoDiffImageSetSpecial(), DoDiffKernelMatrix(), DoDiffKeyframes(), DoDiffKeywordList(), DoDiffModel(), DoDiffMpeg7Shot(), DoDiffQuidTable(), DoDiffScoreFile(), DoDiffSegmentation(), DoDiffSimilarityTableSet(), DoDiffStills(), DoDiffSvmProblem(), DoDiffVideoSet(), DoDumpAnnotationTable(), DoDumpAnnotationTableSet(), DoDumpBestFile(), DoDumpFeatureTable(), DoDumpFikSvm(), DoDumpFold(), DoDumpFrameHashes(), DoDumpImageArchive(), DoDumpImageArchiveSpecial(), DoDumpImageSet(), DoDumpImageSets(), DoDumpImageSetSpecial(), DoDumpKernelMatrix(), DoDumpKeyframes(), DoDumpKeywordList(), DoDumpModel(), DoDumpMpeg7Shot(), DoDumpQuidTable(), DoDumpSegmentation(), DoDumpSimilarityTableSet(), DoDumpStills(), DoDumpSvmProblem(), DoDumpVideoSet(), DoDumpVideoSets(), DoIndexAnnotatedFeatures(), DoKernelMatrix2SimilarityTable(), DoKernelMatrix2Text(), DoMergeAnnotationTable(), DoMergeAnnotationTableSet(), DoMergeSimilarityTableSet(), DoSelectAnnotationTableSet(), DoSetQuidSetFeatureTable(), DoSyncFile(), DoSyncImageFiles(), DoSyncVideoFiles(), 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(). 03033 { 03034 CmdOptions& options = CmdOptions::GetInstance(); 03035 options.Initialise(true, false, true); 03036 options.AddOption(0, "start", "nr", "0"); 03037 options.AddOption(0, "end", "nr", "-1"); 03038 options.AddOption(0, "tolerance", "tolerance for difference in double values", "1e-14"); 03039 options.AddOption(0, "sync", "", "0"); 03040 String usageStr = "cmd = \n\n"; 03041 usageStr += " dumpimagesets\n"; 03042 usageStr += " dumpvideosets\n"; 03043 usageStr += " copyvideosets dstLocation\n"; 03044 usageStr += " dumpimageset location imageset.txt\n"; 03045 usageStr += " diffimageset location1 imageset.txt location2\n"; 03046 usageStr += " copyimageset location1 imageset.txt location2\n"; 03047 usageStr += " deleteimageset location imageset.txt\n"; 03048 usageStr += " syncimagefiles location1 imageset.txt location2\n"; 03049 usageStr += " dumpspecialimageset location videoset.txt imageset.txt\n"; 03050 usageStr += " diffspecialimageset location1 videoset.txt imageset.txt location2\n"; 03051 usageStr += " copyspecialimageset location1 videoset.txt imageset.txt location2\n"; 03052 usageStr += " dumpvideoset location videoset.txt\n"; 03053 usageStr += " diffvideoset location1 videoset.txt location2\n"; 03054 usageStr += " copyvideoset location1 videoset.txt location2\n"; 03055 usageStr += " deletevideoset location videoset.txt\n"; 03056 usageStr += " syncvideofiles location1 videoset.txt doInfoFiles location2\n"; 03057 usageStr += " deletevideoinfofiles location videoset.txt\n"; 03058 usageStr += " dumpframehashes location videoset.txt\n"; 03059 usageStr += " diffframehashes location1 videoset.txt location2\n"; 03060 usageStr += " copyframehashes location1 videoset.txt location2\n"; 03061 usageStr += " dumpsegmentation location videoset.txt\n"; 03062 usageStr += " diffsegmentation location1 videoset.txt location2\n"; 03063 usageStr += " copysegmentation location1 videoset.txt location2\n"; 03064 usageStr += " deletesegmentation location videoset.txt\n"; 03065 usageStr += " dumpkeyframes location videoset.txt\n"; 03066 usageStr += " diffkeyframes location1 videoset.txt location2\n"; 03067 usageStr += " copykeyframes location1 videoset.txt location2\n"; 03068 usageStr += " deletekeyframes location videoset.txt\n"; 03069 usageStr += " dumpstills location videoset.txt\n"; 03070 usageStr += " diffstills location1 videoset.txt location2\n"; 03071 usageStr += " copystills location1 videoset.txt location2\n"; 03072 usageStr += " deletestills location videoset.txt\n"; 03073 usageStr += " dumpquidtable location dataset.txt dir name\n"; 03074 usageStr += " diffquidtable location1 dataset.txt dir name location2\n"; 03075 usageStr += " copyquidtable location1 dataset.txt dir name location2\n"; 03076 usageStr += " deletequidtable location dataset.txt dir name\n"; 03077 usageStr += " dumpmpeg7shot location videoset.txt container\n"; 03078 usageStr += " diffmpeg7shot location1 videoset.txt container location2\n"; 03079 usageStr += " copympeg7shot location1 videoset.txt container location2\n"; 03080 usageStr += " deletempeg7shot location videoset.txt container\n"; 03081 usageStr += " deletempeg7annotation location videoset.txt container\n"; 03082 usageStr += " deletempeg7concept location videoset.txt container\n"; 03083 usageStr += " dumpimagearchive location dataset.txt isFrames container name.raw\n"; 03084 usageStr += " diffimagearchive location1 dataset.txt isFrames container name.raw location2\n"; 03085 usageStr += " copyimagearchive location1 dataset.txt isFrames container name.raw location2\n"; 03086 usageStr += " deleteimagearchive location dataset.txt isFrames container name.raw\n"; 03087 usageStr += " dumpimagearchivespecial location videoset.txt imageset.txt container name.raw\n"; 03088 usageStr += " diffimagearchivespecial location1 videoset.txt imageset.txt container name.raw location2\n"; 03089 usageStr += " copyimagearchivespecial location1 videoset.txt imageset.txt container name.raw location2\n"; 03090 usageStr += " deleteimagearchivespecial location videoset.txt imageset.txt container name.raw\n"; 03091 usageStr += " dumpfeaturetable location dataset.txt isCodebook isIndex walkType feature container\n"; 03092 usageStr += " difffeaturetable location1 dataset.txt isCodebook isIndex walkType feature container location2\n"; 03093 usageStr += " copyfeaturetable location1 dataset.txt isCodebook isIndex walkType feature container location2\n"; 03094 usageStr += " deletefeaturetable location dataset.txt isCodebook isIndex walkType feature container\n"; 03095 usageStr += " setquidsetfeaturetable location dataset.txt isCodebook isIndex walkType feature container setId\n"; 03096 usageStr += " dumpkeywordlist location videoset.txt concepts.txt\n"; 03097 usageStr += " diffkeywordlist location1 videoset.txt concepts.txt location2\n"; 03098 usageStr += " copykeywordlist location1 videoset.txt concepts.txt location2\n"; 03099 usageStr += " dumpannotationtable location dataset.txt quidClass concepts.txt keyword\n"; 03100 usageStr += " diffannotationtable location1 dataset.txt quidClass concepts.txt keyword location2\n"; 03101 usageStr += " copyannotationtable location1 dataset.txt quidClass concepts.txt keyword location2\n"; 03102 usageStr += " deleteannotationtable location dataset.txt quidClass concepts.txt keyword\n"; 03103 usageStr += " mergeannotationtable location dataset.txt quidClass concepts.txt outputkeyword [inputkeyword]+ \n"; 03104 usageStr += " dumpannotationtableset location dataset.txt quidClass concepts.txt doTable [maxVidId maxPos maxNeg]\n"; 03105 usageStr += " diffannotationtableset location1 dataset.txt quidClass concepts.txt location2\n"; 03106 usageStr += " copyannotationtableset location1 dataset.txt quidClass concepts.txt location2\n"; 03107 usageStr += " deleteannotationtableset location dataset.txt quidClass concepts.txt\n"; 03108 usageStr += " mergeannotationtableset [inputlocation inputdataset.txt inputquidClass inputconcepts.txt]+ outputlocation outputdataset.txt outputquidClass outputconcepts.txt \n"; 03109 usageStr += " correctannotationtableset location dataset.txt quidClass conceptsOriginal.txt conceptsCorrections.txt conceptsResult.txt\n"; 03110 usageStr += " selectannotationtableset location dataset.txt quidClass concepts.txt concept iteration\n"; 03111 usageStr += " indexannotatedfeatures location dataset.txt quidClass concepts.txt feature\n"; 03112 usageStr += " dumpfold location dataset.txt quidClass concepts.txt keyword foldType foldNr\n"; 03113 usageStr += " difffold location1 dataset.txt quidClass concepts.txt keyword foldType foldNr location2\n"; 03114 usageStr += " copyfold location1 dataset.txt quidClass concepts.txt keyword foldType foldNr location2\n"; 03115 usageStr += " deletefold location dataset.txt quidClass concepts.txt keyword foldType foldNr\n"; 03116 usageStr += " dumpsimilaritytableset location dataset.txt isIndex walkType conceptSet.txt model feature container [dumpAsMatrix dumpQuid]\n"; 03117 usageStr += " diffsimilaritytableset location1 dataset.txt isIndex walkType conceptSet.txt model feature container location2\n"; 03118 usageStr += " copysimilaritytableset location1 dataset.txt isIndex walkType conceptSet.txt model feature container location2\n"; 03119 usageStr += " deletesimilaritytableset location dataset.txt isIndex walkType conceptSet.txt model feature container\n"; 03120 usageStr += " mergesimilaritytableset location1 dataset.txt isIndex walkType dstConceptSet.txt model feature container srcConceptSet1 srcConceptSet2 [srcConceptSetN]\n"; 03121 usageStr += " dumpbestfile location dataset.txt conceptSet.txt model feature concept\n"; 03122 usageStr += " diffbestfile location1 dataset.txt conceptSet.txt model feature concept location2\n"; 03123 usageStr += " copybestfile location1 dataset.txt conceptSet.txt model feature concept location2\n"; 03124 usageStr += " dumpsvmproblem location dataset.txt conceptSet.txt model feature concept\n"; 03125 usageStr += " diffsvmproblem location1 dataset.txt conceptSet.txt model feature concept location2\n"; 03126 usageStr += " copysvmproblem location1 dataset.txt conceptSet.txt model feature concept location2\n"; 03127 usageStr += " deletesvmproblem location dataset.txt conceptSet.txt model feature concept\n"; 03128 usageStr += " dumpmodel location dataset.txt conceptSet.txt model feature concept\n"; 03129 usageStr += " diffmodel location1 dataset.txt conceptSet.txt model feature concept location2\n"; 03130 usageStr += " copymodel location1 dataset.txt conceptSet.txt model feature concept location2\n"; 03131 usageStr += " deletemodel location dataset.txt conceptSet.txt model feature concept\n"; 03132 usageStr += " diffallparameterfile location1 dataset.txt conceptSet.txt model feature concept location2\n"; 03133 usageStr += " diffscorefile location1 dataset.txt conceptSet.txt model feature concept location2\n"; 03134 usageStr += " dumpfiksvm location dataset.txt conceptSet.txt model feature concept\n"; 03135 usageStr += " difffiksvm location1 dataset.txt conceptSet.txt model feature concept location2\n"; 03136 usageStr += " dumpkernelmatrix location dataset.txt isIndex walkType annoSet.txt model feature container\n"; 03137 usageStr += " diffkernelmatrix location1 dataset.txt isIndex walkType annoSet.txt model feature container location2\n"; 03138 usageStr += " copykernelmatrix location1 dataset.txt isIndex walkType annoSet.txt model feature container location2 [walkType2] [writeMerged2]\n"; 03139 usageStr += " deletekernelmatrix location dataset.txt isIndex walkType annoSet.txt model feature container\n"; 03140 usageStr += " kernelmatrix2similaritytable location dataset.txt isIndex walkType annoSet.txt model feature container [topN]\n"; 03141 usageStr += " kernelmatrix2text location dataset.txt isIndex walkType annoSet.txt model feature container [topN]\n"; 03142 usageStr += " syncfile location1 dataset.txt filename location2\n"; 03143 if (! options.ParseArgs(argc, argv, usageStr, 1)) 03144 return 1; 03145 03146 ILOG_VAR(Impala.Application.Repository.mainRepository); 03147 03148 String cmd = options.GetArg(0); 03149 ILOG_DEBUG("cmd = " << cmd); 03150 if (cmd == "dumpimagesets") 03151 DoDumpImageSets(); 03152 else if (cmd == "dumpvideosets") 03153 DoDumpVideoSets(); 03154 else if (cmd == "copyvideosets") 03155 DoCopyVideoSets(); 03156 else if (cmd == "dumpimageset") 03157 DoDumpImageSet(); 03158 else if (cmd == "diffimageset") 03159 DoDiffImageSet(); 03160 else if (cmd == "copyimageset") 03161 DoCopyImageSet(); 03162 else if (cmd == "deleteimageset") 03163 DoDeleteImageSet(); 03164 else if (cmd == "syncimagefiles") 03165 DoSyncImageFiles(); 03166 else if (cmd == "dumpimagesetspecial") 03167 DoDumpImageSetSpecial(); 03168 else if (cmd == "diffimagesetspecial") 03169 DoDiffImageSetSpecial(); 03170 else if (cmd == "copyimagesetspecial") 03171 DoCopyImageSetSpecial(); 03172 else if (cmd == "deleteimagesetspecial") 03173 DoDeleteImageSetSpecial(); 03174 else if (cmd == "dumpvideoset") 03175 DoDumpVideoSet(); 03176 else if (cmd == "diffvideoset") 03177 DoDiffVideoSet(); 03178 else if (cmd == "copyvideoset") 03179 DoCopyVideoSet(); 03180 else if (cmd == "deletevideoset") 03181 DoDeleteVideoSet(); 03182 else if (cmd == "syncvideofiles") 03183 DoSyncVideoFiles(); 03184 else if (cmd == "deletevideoinfofiles") 03185 DoDeleteVideoInfoFiles(); 03186 else if (cmd == "dumpframehashes") 03187 DoDumpFrameHashes(); 03188 else if (cmd == "diffframehashes") 03189 DoDiffFrameHashes(); 03190 else if (cmd == "copyframehashes") 03191 DoCopyFrameHashes(); 03192 else if (cmd == "dumpsegmentation") 03193 DoDumpSegmentation(); 03194 else if (cmd == "diffsegmentation") 03195 DoDiffSegmentation(); 03196 else if (cmd == "copysegmentation") 03197 DoCopySegmentation(); 03198 else if (cmd == "deletesegmentation") 03199 DoDeleteSegmentation(); 03200 else if (cmd == "dumpkeyframes") 03201 DoDumpKeyframes(); 03202 else if (cmd == "diffkeyframes") 03203 DoDiffKeyframes(); 03204 else if (cmd == "copykeyframes") 03205 DoCopyKeyframes(); 03206 else if (cmd == "deletekeyframes") 03207 DoDeleteKeyframes(); 03208 else if (cmd == "dumpstills") 03209 DoDumpStills(); 03210 else if (cmd == "diffstills") 03211 DoDiffStills(); 03212 else if (cmd == "copystills") 03213 DoCopyStills(); 03214 else if (cmd == "deletestills") 03215 DoDeleteStills(); 03216 else if (cmd == "dumpquidtable") 03217 DoDumpQuidTable(); 03218 else if (cmd == "diffquidtable") 03219 DoDiffQuidTable(); 03220 else if (cmd == "copyquidtable") 03221 DoCopyQuidTable(); 03222 else if (cmd == "deletequidtable") 03223 DoDeleteQuidTable(); 03224 else if (cmd == "dumpmpeg7shot") 03225 DoDumpMpeg7Shot(); 03226 else if (cmd == "diffmpeg7shot") 03227 DoDiffMpeg7Shot(); 03228 else if (cmd == "copympeg7shot") 03229 DoCopyMpeg7Shot(); 03230 else if (cmd == "deletempeg7shot") 03231 DoDeleteMpeg7Shot(); 03232 else if (cmd == "deletempeg7annotation") 03233 DoDeleteMpeg7Annotation(); 03234 else if (cmd == "deletempeg7concept") 03235 DoDeleteMpeg7Concept(); 03236 else if (cmd == "dumpimagearchive") 03237 DoDumpImageArchive(); 03238 else if (cmd == "diffimagearchive") 03239 DoDiffImageArchive(); 03240 else if (cmd == "copyimagearchive") 03241 DoCopyImageArchive(); 03242 else if (cmd == "deleteimagearchive") 03243 DoDeleteImageArchive(); 03244 else if (cmd == "dumpimagearchivespecial") 03245 DoDumpImageArchiveSpecial(); 03246 else if (cmd == "diffimagearchivespecial") 03247 DoDiffImageArchiveSpecial(); 03248 else if (cmd == "copyimagearchivespecial") 03249 DoCopyImageArchiveSpecial(); 03250 else if (cmd == "deleteimagearchivespecial") 03251 DoDeleteImageArchiveSpecial(); 03252 else if (cmd == "dumpfeaturetable") 03253 DoDumpFeatureTable(); 03254 else if (cmd == "difffeaturetable") 03255 DoDiffFeatureTable(); 03256 else if (cmd == "copyfeaturetable") 03257 DoCopyFeatureTable(); 03258 else if (cmd == "deletefeaturetable") 03259 DoDeleteFeatureTable(); 03260 else if (cmd == "setquidsetfeaturetable") 03261 DoSetQuidSetFeatureTable(); 03262 else if (cmd == "dumpkeywordlist") 03263 DoDumpKeywordList(); 03264 else if (cmd == "diffkeywordlist") 03265 DoDiffKeywordList(); 03266 else if (cmd == "copykeywordlist") 03267 DoCopyKeywordList(); 03268 else if (cmd == "dumpannotationtable") 03269 DoDumpAnnotationTable(); 03270 else if (cmd == "diffannotationtable") 03271 DoDiffAnnotationTable(); 03272 else if (cmd == "copyannotationtable") 03273 DoCopyAnnotationTable(); 03274 else if (cmd == "deleteannotationtable") 03275 DoDeleteAnnotationTable(); 03276 else if (cmd == "mergeannotationtable") 03277 DoMergeAnnotationTable(); 03278 else if (cmd == "dumpannotationtableset") 03279 DoDumpAnnotationTableSet(); 03280 else if (cmd == "diffannotationtableset") 03281 DoDiffAnnotationTableSet(); 03282 else if (cmd == "copyannotationtableset") 03283 DoCopyAnnotationTableSet(); 03284 else if (cmd == "deleteannotationtableset") 03285 DoDeleteAnnotationTableSet(); 03286 else if (cmd == "mergeannotationtableset") 03287 DoMergeAnnotationTableSet(); 03288 else if (cmd == "correctannotationtableset") 03289 DoCorrectAnnotationTableSet(); 03290 else if (cmd == "selectannotationtableset") 03291 DoSelectAnnotationTableSet(); 03292 else if (cmd == "indexannotatedfeatures") 03293 DoIndexAnnotatedFeatures(); 03294 else if (cmd == "dumpfold") 03295 DoDumpFold(); 03296 else if (cmd == "difffold") 03297 DoDiffFold(); 03298 else if (cmd == "copyfold") 03299 DoCopyFold(); 03300 else if (cmd == "deletefold") 03301 DoDeleteFold(); 03302 else if (cmd == "dumpsimilaritytableset") 03303 DoDumpSimilarityTableSet(); 03304 else if (cmd == "diffsimilaritytableset") 03305 DoDiffSimilarityTableSet(); 03306 else if (cmd == "copysimilaritytableset") 03307 DoCopySimilarityTableSet(); 03308 else if (cmd == "deletesimilaritytableset") 03309 DoDeleteSimilarityTableSet(); 03310 else if (cmd == "mergesimilaritytableset") 03311 DoMergeSimilarityTableSet(); 03312 else if (cmd == "dumpbestfile") 03313 DoDumpBestFile(); 03314 else if (cmd == "diffbestfile") 03315 DoDiffBestFile(); 03316 else if (cmd == "copybestfile") 03317 DoCopyBestFile(); 03318 else if (cmd == "dumpsvmproblem") 03319 DoDumpSvmProblem(); 03320 else if (cmd == "diffsvmproblem") 03321 DoDiffSvmProblem(); 03322 else if (cmd == "copysvmproblem") 03323 DoCopySvmProblem(); 03324 else if (cmd == "deletesvmproblem") 03325 DoDeleteSvmProblem(); 03326 else if (cmd == "dumpmodel") 03327 DoDumpModel(); 03328 else if (cmd == "diffmodel") 03329 DoDiffModel(); 03330 else if (cmd == "copymodel") 03331 DoCopyModel(); 03332 else if (cmd == "deletemodel") 03333 DoDeleteModel(); 03334 else if (cmd == "diffallparameterfile") 03335 DoDiffAllParameterFile(); 03336 else if (cmd == "diffscorefile") 03337 DoDiffScoreFile(); 03338 else if (cmd == "dumpfiksvm") 03339 DoDumpFikSvm(); 03340 else if (cmd == "difffiksvm") 03341 DoDiffFikSvm(); 03342 else if (cmd == "dumpkernelmatrix") 03343 DoDumpKernelMatrix(); 03344 else if (cmd == "diffkernelmatrix") 03345 DoDiffKernelMatrix(); 03346 else if (cmd == "copykernelmatrix") 03347 DoCopyKernelMatrix(); 03348 else if (cmd == "deletekernelmatrix") 03349 DoDeleteKernelMatrix(); 03350 else if (cmd == "kernelmatrix2similaritytable") 03351 DoKernelMatrix2SimilarityTable(); 03352 else if (cmd == "kernelmatrix2text") 03353 DoKernelMatrix2Text(); 03354 else if (cmd == "syncfile") 03355 DoSyncFile(); 03356 else ILOG_ERROR("Unknown cmd : " << cmd); 03357 03358 int nrOfErrors = ILOG_ERROR_COUNT; 03359 ILOG_INFO_HEADNODE("Done, total nr error = " << nrOfErrors); 03360 return nrOfErrors; 03361 }
Here is the call graph for this function: ![]()
|