opencv/samples/cpp/tutorial_code
float13 1accf3b3f4 Tutorial - Make required input args positional.
I think it would help to change all 3 of the the input file arguments to be "positional" for consistency with the other tutorials. This also simplifies the command line input to run this tutorial by reducing typing, and helpfully prints the "usage" info if any of the 3 required inputs are missing.

I'm new to OpenCV and working through the tutorials. I kept getting runtime errors with this one until I realized that the arguments weren't positional, and I was missing the "--input1", "--input2, "--input3" flags preceding the filenames. All of the previous tutorials had required filenames as positional arguments and didn't require this.

The original code would require each input to be specified like this:
./compareHist_Demo --input1 filename1 --input2 filename2 --input3 filename3 

But with this change, the above command is simplified to:
./compareHist_Demo  filename1 filename2 filename3

This avoids a confusing runtime error to make things simpler for newcomers like me :)
2019-10-23 13:07:52 +03:00
..
calib3d cmake(samples): use LINK_PRIVATE in target_link_libraries 2019-05-15 18:38:00 +03:00
core Update Samples 2019-09-05 01:10:51 +03:00
features2D Update Samples 2019-09-05 01:10:51 +03:00
gpu Merge branch 'thrust_tutorial' of http://github.com/dtmoodie/opencv into thrust_tutorial 2015-11-10 12:29:51 -05:00
HighGUI Update Samples 2019-09-05 01:10:51 +03:00
Histograms_Matching Tutorial - Make required input args positional. 2019-10-23 13:07:52 +03:00
imgcodecs/GDAL_IO Update documentation ( tutorials ) 2016-08-15 17:23:04 +03:00
ImgProc Update Samples 2019-09-05 01:10:51 +03:00
ImgTrans Update Samples 2019-09-05 01:10:51 +03:00
introduction Update Samples 2019-09-05 01:10:51 +03:00
ml Update Samples 2019-09-05 01:10:51 +03:00
objectDetection Update Samples 2019-09-05 01:10:51 +03:00
photo Update Samples 2019-09-05 01:10:51 +03:00
ShapeDescriptors Update Samples 2019-09-05 01:10:51 +03:00
snippets add imgproc snippets 2018-06-01 23:42:00 +09:00
TrackingMotion Update Samples 2019-09-05 01:10:51 +03:00
video Update Samples 2019-09-05 01:10:51 +03:00
videoio update samples: waitKey() usage 2016-12-15 15:39:47 +03:00
viz samples: avoid using of legacy code constructions in viz sample 2018-04-03 16:05:43 +03:00
xfeatures2D Update Samples 2019-09-05 01:10:51 +03:00