OpenCL examples refactoring
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user