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

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

Definition at line 103 of file mainVidBrowse.cpp.

References Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetInt(), Impala::CmdOptions::Initialise(), Impala::CmdOptions::ParseArgs(), Impala::CmdOptions::SetDefault(), and OglGui::OglWindow::Valid().

Referenced by main().

00104 {
00105     CmdOptions& options = CmdOptions::GetInstance();
00106     options.Initialise(true, false, true);
00107     options.SetDefault("wndWidth", "1270");
00108     options.SetDefault("wndHeight", "975");
00109     std::string usageStr = "cmd data\n\n";
00110     usageStr += "  cmd = nop|sift|keypoints|keypoints_all|pixconcept|rects|\n";
00111     usageStr += "        background\n";
00112     usageStr += "  data = set.txt|anno.ixs|file\n\n";
00113     if (! options.ParseArgs(argc, argv, usageStr, 2))
00114         return 1;
00115 
00116     int reqWndWidth = options.GetInt("wndWidth");
00117     int reqWndHeight = options.GetInt("wndHeight");
00118     WindowVidBrowse* wnd = new WindowVidBrowse(reqWndWidth, reqWndHeight);
00119     if (! wnd->Valid())
00120     {
00121         std::cout << "WindowVidBrowse failed" << std::endl;
00122         return 0;
00123     }
00124     return 1;
00125 }

Here is the call graph for this function:


Generated on Fri Mar 19 10:36:50 2010 for ImpalaSrc by  doxygen 1.5.1