opencv/samples
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
..
android cmake(samples): use LINK_PRIVATE in target_link_libraries 2019-05-15 18:38:00 +03:00
cpp Tutorial - Make required input args positional. 2019-10-23 13:07:52 +03:00
data Merge pull request #14627 from l-bat:demo_kinetics 2019-05-30 17:36:00 +03:00
directx FIx misc. source and comment typos 2019-08-15 13:09:52 +03:00
dnn fix pylint warnings 2019-10-16 18:49:33 +03:00
gpu cmake(samples): use LINK_PRIVATE in target_link_libraries 2019-05-15 18:38:00 +03:00
hal Update HAL samples 2016-06-03 11:52:30 +03:00
java photo: move TonemapDurand to opencv_contrib 2018-12-04 18:59:27 +03:00
opencl FIx misc. source and comment typos 2019-08-15 13:09:52 +03:00
opengl cmake(samples): use LINK_PRIVATE in target_link_libraries 2019-05-15 18:38:00 +03:00
openvx cmake(samples): use LINK_PRIVATE in target_link_libraries 2019-05-15 18:38:00 +03:00
python fix pylint warnings 2019-10-16 18:49:33 +03:00
tapi Update Samples 2019-09-05 01:10:51 +03:00
va_intel cmake(samples): use LINK_PRIVATE in target_link_libraries 2019-05-15 18:38:00 +03:00
winrt Misc. typos 2018-07-31 18:44:23 +03:00
winrt_universal samples: avoid using of legacy C-like API (part 2) 2018-03-29 14:17:23 +03:00
wp8 samples: avoid using of legacy C-like API (part 2) 2018-03-29 14:17:23 +03:00
_winpack_build_sample.cmd samples: support MSVS 2019 compiler 2019-06-22 16:24:21 +00:00
_winpack_run_python_sample.cmd samples(run_python): fix registry values querying 2018-11-17 09:42:51 +00:00
CMakeLists.example.in cmake(samples): use LINK_PRIVATE in target_link_libraries 2019-05-15 18:38:00 +03:00
CMakeLists.txt cmake: enable threading in samples 2019-05-14 17:29:46 +03:00
samples_utils.cmake cmake: enable threading in samples 2019-05-14 17:29:46 +03:00