• Alexander Fedorov's avatar
    Fixed parser for img1_filename and img2_filename. · 474c53ac
    Alexander Fedorov authored
    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
    474c53ac
stereo_match.cpp 9.1 KB