diff --git a/example_18-01.cpp b/example_18-01.cpp index b1f50eb..9e9255c 100644 --- a/example_18-01.cpp +++ b/example_18-01.cpp @@ -15,6 +15,8 @@ void help(char **argv) { << " reading and collecting the requested number of views,\n" << " and calibrating the camera\n\n" << "Call:\n" << argv[0] << " \n\n" + << "Example:\n./example_18-01 9 6 15 500 0.5\n" + << "\n -- use the checkerboard9x6.png provided\n\n" << " * First it reads in checker boards and calibrates itself\n" << " * Then it saves and reloads the calibration matricies\n" << " * Then it creates an undistortion map and finaly\n" @@ -29,7 +31,7 @@ int main(int argc, char *argv[]) { int board_w = 0; int board_h = 0; - if (argc < 4 || argc > 6) { + if (argc != 6) { cout << "\nERROR: Wrong number of input parameters\n"; help(argv); return -1; diff --git a/example_19-02.cpp b/example_19-02.cpp index abf865d..0bb9d94 100644 --- a/example_19-02.cpp +++ b/example_19-02.cpp @@ -8,7 +8,8 @@ void help(char *argv[]) { << "\nCall" << "\n./example_19-2 <1:board_w> <2:board_h> <3:# of boards> <4:delay capture this many ms between frames> <5:scale the images 0-1>" << "\n\nExample call:" - << "\n./example_19-2 12 12 20 500 0.5" + << "\n./example_19-2 9 6 20 500 0.5" + << "\n\n -- use the checkerboard9x6.png provided" << "\n" << endl; } @@ -24,7 +25,7 @@ int main(int argc, char *argv[]) { int board_h = 0; // Will be set by input list - if (argc < 4 || argc > 6) { + if (argc != 6) { cout << "\nERROR: Wrong number of input parameters, need 5, got " << argc - 1 << "\n"; help(argv); return -1;