This commit is contained in:
Konstantin Matskevich
2014-01-24 13:37:19 +04:00
parent 450ea3131f
commit 07778e1760
6 changed files with 33 additions and 124 deletions

View File

@@ -140,7 +140,7 @@ static UMat drawSquaresBoth( const UMat& image,
int main(int argc, char** argv)
{
const char* keys =
"{ i input | | specify input image }"
"{ i input | pic1.png | specify input image }"
"{ o output | squares_output.jpg | specify output save path}"
"{ h help | false | print help message }"
"{ m cpu_mode | false | run without OpenCL }";
@@ -172,6 +172,7 @@ int main(int argc, char** argv)
if( image.empty() )
{
cout << "Couldn't load " << inputName << endl;
cmd.printMessage();
return EXIT_FAILURE;
}