Error in stereo_match.cpp example
When I start the stereo match example in 3.1.0, I get an exception:
"OpenCV Error: Bad argument (undeclared position 0 requested) in getByIndex, file /home/usera/opencv-3.1.0/modules/core/src/command_line_parser.cpp line 169"
in my opinion, the reason is the missing definition of the filenames in the CommandLineParser key string. In "stereo_match.cpp", instead of:
cv::CommandLineParser parser(argc, argv,
"{{help h||}{algorithm||}{max-disparity|0|}{blocksize|0|}{no-display||}{scale|1|}{i||}{e||}{o||}{p||}");
it should read:
cv::CommandLineParser parser(argc, argv,
"{@image1||} {@image2||} {help h||}{algorithm||}{max-disparity|0|}{blocksize|0|}{no-display||}{scale|1|}{i||}{e||}{o||}{p||}");
Is this correct? Or am I missing something?