OpenCL examples refactoring

This commit is contained in:
Ilya Lavrenov
2013-10-21 20:47:55 +04:00
parent aec7d9c1db
commit 4d86e2140d
10 changed files with 130 additions and 160 deletions

View File

@@ -72,6 +72,14 @@ int main(int argc, char** argv)
"{ l |larger_win| false | use 64x128 window}"
"{ o | output | | specify output path when input is images}";
CommandLineParser cmd(argc, argv, keys);
if (cmd.get<bool>("help"))
{
cout << "Usage : hog [options]" << endl;
cout << "Available options:" << endl;
cmd.printParams();
return EXIT_SUCCESS;
}
App app(cmd);
try
{
@@ -89,7 +97,7 @@ int main(int argc, char** argv)
{
return cout << "unknown exception" << endl, 1;
}
return 0;
return EXIT_SUCCESS;
}
App::App(CommandLineParser& cmd)