fixed cmd line parsing in the samples

This commit is contained in:
Ivan Korolev
2013-01-31 12:08:43 +04:00
parent 7572b4d400
commit 36451319c1
9 changed files with 11 additions and 11 deletions

View File

@@ -24,7 +24,7 @@ int main(int argc, const char ** argv)
{
help();
CommandLineParser parser(argc, argv, keys);
string filename = parser.get<string>(1);
string filename = parser.get<string>(0);
Mat img = imread(filename.c_str(), CV_LOAD_IMAGE_GRAYSCALE);
if( img.empty() )