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

int Impala::Application::Im::mainIm ( int  argc,
char *  argv[] 
)

Definition at line 780 of file mainIm.cpp.

References Impala::Core::Array::ArraySystem::CheckMemoryUsageSinceMark(), DoAniGaussVec3UInt8(), DoColorSegmentation(), DoDump(), 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().

00781 {
00782     CmdOptions& options = CmdOptions::GetInstance();
00783     options.Initialise(false, false, true);
00784     String usageStr = "cmd = \n\n";
00785     usageStr += "  dump rawFile [-genesis]\n";
00786     usageStr += "  jpg2raw jpgFile rawFile [-binary {0|1}]\n";
00787     usageStr += "  png2raw pngFile rawFile [-binary {0|1}]\n";
00788     usageStr += "  testequal im1File im2File [-eps value]\n";
00789     usageStr += "  njetvec3uint8 dstFile srcFile sigma precision\n";
00790     usageStr += "  gaussvec3uint8 dstFile srcFile sigma derX derY precision\n";
00791     usageStr += "  recgaussvec3uint8 dstFile srcFile sigmaX sigmaY derX derY order\n";
00792     usageStr += "  anigaussvec3uint8 dstFile srcFile sigmaV sigmaU phi derV derU\n";
00793     usageStr += "  recgaborvec3uint8 dstFile srcFile s omega0 theta\n";
00794     usageStr += "  watershedvec3uint8 dstFile srcFile conn\n";
00795     usageStr += "  watershedmarkersvec3uint8 dstFile srcFile maskFile conn doLabel\n";
00796     usageStr += "  rotate dstFile srcFile alpha geoInt adjustSize background\n";
00797     usageStr += "  weibullW imFile sigma\n";
00798     usageStr += "  weibullIRGB imFile sigma [doMu=0] [doAnderson=0] [doArjan=0]\n";
00799     usageStr += "  segment dstFile srcFile [minRegionFraction=0.01] [threshold=6.0]\n";
00800     usageStr += "  matrix srcFile version\n";
00801     if (! options.ParseArgs(argc, argv, usageStr, 1))
00802         return 1;
00803 
00804     ILOG_VAR(Impala.Application.Util.mainIm);
00805 
00806     int verbose = options.GetInt("verb");
00807     ArraySystem& aSys = ArraySystem::Instance();
00808     aSys.MarkMemoryUsage(verbose > 0);
00809 
00810     String cmd = options.GetArg(0);
00811     if (cmd == "dump")
00812         DoDump();
00813     else if (cmd == "jpg2raw")
00814         DoJpg2Raw();
00815     else if (cmd == "png2raw")
00816         DoPng2Raw();
00817     else if (cmd == "testequal")
00818         DoTestEqual();
00819     else if (cmd == "njetvec3uint8")
00820         DoNJetVec3UInt8();
00821     else if (cmd == "gaussvec3uint8")
00822         DoGaussVec3UInt8();
00823     else if (cmd == "recgaussvec3uint8")
00824         DoRecGaussVec3UInt8();
00825     else if (cmd == "anigaussvec3uint8")
00826         DoAniGaussVec3UInt8();
00827     else if (cmd == "recgaborvec3uint8")
00828         DoRecGaborVec3UInt8();
00829     else if (cmd == "watershedvec3uint8")
00830         DoWatershedVec3UInt8();
00831     else if (cmd == "watershedmarkersvec3uint8")
00832         DoWatershedMarkersVec3UInt8();
00833     else if (cmd == "watershedmarkers2vec3uint8")
00834         DoWatershedMarkers2Vec3UInt8();
00835     else if (cmd == "rotate")
00836         DoRotateVec3UInt8();
00837     else if (cmd == "weibullW")
00838         DoWeibullW();
00839     else if (cmd == "weibullIRGB")
00840         DoWeibullIRGB();
00841     else if (cmd == "segment")
00842         DoColorSegmentation();
00843     else if (cmd == "matrix")
00844         DoMatrix();
00845     else if (cmd == "test")
00846         DoTest();
00847     else ILOG_ERROR("Unknown cmd : " << cmd);
00848 
00849     aSys.CheckMemoryUsageSinceMark(verbose > 0);
00850 
00851     return 0;
00852 }

Here is the call graph for this function:


Generated on Fri Mar 19 10:42:30 2010 for ImpalaSrc by  doxygen 1.5.1