add default file to load in case sample was run without command line arguments

This commit is contained in:
Tzafrir
2015-01-06 16:13:46 +02:00
parent 28833421ae
commit 997dded1ac
5 changed files with 37 additions and 16 deletions

View File

@@ -44,8 +44,8 @@ static void colorizeFlow(const Mat &u, const Mat &v, Mat &dst)
int main(int argc, char **argv)
{
CommandLineParser cmd(argc, argv,
"{ l left | | specify left image }"
"{ r right | | specify right image }"
"{ l left | ../data/basketball1.png | specify left image }"
"{ r right | ../data/basketball2.png | specify right image }"
"{ h help | | print help message }");
cmd.about("Farneback's optical flow sample.");