Fixed parser for img1_filename and img2_filename.
authorAlexander Fedorov <Entodi@users.noreply.github.com>
Mon, 18 Jan 2016 12:34:41 +0000 (15:34 +0300)
committerAlexander Fedorov <Entodi@users.noreply.github.com>
Mon, 18 Jan 2016 12:34:41 +0000 (15:34 +0300)
commit474c53ac710bd61224443258b6e0f7c595b08fae
treec155e7519c0abf26bc8c101fdaa7c18a3bb60808
parent3f8d5be56f8d36ca9bfe4cf86d4989998117968d
Fixed parser for img1_filename and img2_filename.

Without fixes after 68 line (img1_filename = parser.get<std::string>(0);) OpenCV Error:
./stereo_matching im0.png im1.png --max-disparity=16 --blocksize=17

OpenCV Error: Bad argument (undeclared position 0 requested) in getByIndex, file /home/entodi/opencv/modules/core/src/command_line_parser.cpp, line 169
terminate called after throwing an instance of 'cv::Exception'
  what():  /home/entodi/opencv/modules/core/src/command_line_parser.cpp:169: error: (-5) undeclared position 0 requested in function getByIndex
samples/cpp/stereo_match.cpp