Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

Error in stereo_match.cpp example

$
0
0
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?

Viewing all articles
Browse latest Browse all 19555

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>