Definition at line 828 of file mainIm.cpp. References Impala::Core::Array::ArraySystem::CheckMemoryUsageSinceMark(), DoAniGaussVec3UInt8(), DoColorSegmentation(), DoDump(), DoDumpCorners(), DoGaussVec3UInt8(), DoJpg2Raw(), DoMatrix(), DoNJetVec3UInt8(), DoPng2Raw(), DoRecGaborVec3UInt8(), DoRecGaussVec3UInt8(), DoRotateVec3UInt8(), DoTest(), DoTestEqual(), DoWatershedMarkers2Vec3UInt8(), DoWatershedMarkersVec3UInt8(), DoWatershedVec3UInt8(), DoWeibullIRGB(), DoWeibullW(), Impala::CmdOptions::GetArg(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetInt(), ILOG_ERROR, ILOG_VAR, Impala::CmdOptions::Initialise(), Impala::Core::Array::ArraySystem::Instance(), Impala::Core::Array::ArraySystem::MarkMemoryUsage(), Impala::CmdOptions::ParseArgs(), and Impala::Application::DemoCamera2d::verbose. Referenced by main(). 00829 { 00830 CmdOptions& options = CmdOptions::GetInstance(); 00831 options.Initialise(false, false, true); 00832 String usageStr = "cmd = \n\n"; 00833 usageStr += " dump rawFile [-genesis]\n"; 00834 usageStr += " dumpcorners rawFile cornerWidth cornerHeight\n"; 00835 usageStr += " jpg2raw jpgFile rawFile [-binary {0|1}]\n"; 00836 usageStr += " png2raw pngFile rawFile [-binary {0|1}]\n"; 00837 usageStr += " testequal im1File im2File [-eps value]\n"; 00838 usageStr += " njetvec3uint8 dstFile srcFile sigma precision\n"; 00839 usageStr += " gaussvec3uint8 dstFile srcFile sigma derX derY precision\n"; 00840 usageStr += " recgaussvec3uint8 dstFile srcFile sigmaX sigmaY derX derY order\n"; 00841 usageStr += " anigaussvec3uint8 dstFile srcFile sigmaV sigmaU phi derV derU\n"; 00842 usageStr += " recgaborvec3uint8 dstFile srcFile s omega0 theta\n"; 00843 usageStr += " watershedvec3uint8 dstFile srcFile conn\n"; 00844 usageStr += " watershedmarkersvec3uint8 dstFile srcFile maskFile conn doLabel\n"; 00845 usageStr += " rotate dstFile srcFile alpha geoInt adjustSize background\n"; 00846 usageStr += " weibullW imFile sigma\n"; 00847 usageStr += " weibullIRGB imFile sigma [doMu=0] [doAnderson=0] [doArjan=0]\n"; 00848 usageStr += " segment dstFile srcFile [minRegionFraction=0.01] [threshold=6.0]\n"; 00849 usageStr += " matrix srcFile version\n"; 00850 if (! options.ParseArgs(argc, argv, usageStr, 1)) 00851 return 1; 00852 00853 ILOG_VAR(Impala.Application.Util.mainIm); 00854 00855 int verbose = options.GetInt("verb"); 00856 ArraySystem& aSys = ArraySystem::Instance(); 00857 aSys.MarkMemoryUsage(verbose > 0); 00858 00859 String cmd = options.GetArg(0); 00860 if (cmd == "dump") 00861 DoDump(); 00862 else if (cmd == "dumpcorners") 00863 DoDumpCorners(); 00864 else if (cmd == "jpg2raw") 00865 DoJpg2Raw(); 00866 else if (cmd == "png2raw") 00867 DoPng2Raw(); 00868 else if (cmd == "testequal") 00869 DoTestEqual(); 00870 else if (cmd == "njetvec3uint8") 00871 DoNJetVec3UInt8(); 00872 else if (cmd == "gaussvec3uint8") 00873 DoGaussVec3UInt8(); 00874 else if (cmd == "recgaussvec3uint8") 00875 DoRecGaussVec3UInt8(); 00876 else if (cmd == "anigaussvec3uint8") 00877 DoAniGaussVec3UInt8(); 00878 else if (cmd == "recgaborvec3uint8") 00879 DoRecGaborVec3UInt8(); 00880 else if (cmd == "watershedvec3uint8") 00881 DoWatershedVec3UInt8(); 00882 else if (cmd == "watershedmarkersvec3uint8") 00883 DoWatershedMarkersVec3UInt8(); 00884 else if (cmd == "watershedmarkers2vec3uint8") 00885 DoWatershedMarkers2Vec3UInt8(); 00886 else if (cmd == "rotate") 00887 DoRotateVec3UInt8(); 00888 else if (cmd == "weibullW") 00889 DoWeibullW(); 00890 else if (cmd == "weibullIRGB") 00891 DoWeibullIRGB(); 00892 else if (cmd == "segment") 00893 DoColorSegmentation(); 00894 else if (cmd == "matrix") 00895 DoMatrix(); 00896 else if (cmd == "test") 00897 DoTest(); 00898 else ILOG_ERROR("Unknown cmd : " << cmd); 00899 00900 aSys.CheckMemoryUsageSinceMark(verbose > 0); 00901 00902 return 0; 00903 }
Here is the call graph for this function: ![]()
|