Skip to content

Commit ead6e82

Browse files
committed
fix 18-01, 19-2, add checkerboard9x6.png
1 parent 94dc66a commit ead6e82

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

example_18-01.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ void help(char **argv) {
1515
<< " reading and collecting the requested number of views,\n"
1616
<< " and calibrating the camera\n\n"
1717
<< "Call:\n" << argv[0] << " <board_width> <board_height> <number_of_boards> <ms_delay_framee_capture> <image_scaling_factor>\n\n"
18+
<< "Example:\n./example_18-01 9 6 15 500 0.5\n"
19+
<< "\n -- use the checkerboard9x6.png provided\n\n"
1820
<< " * First it reads in checker boards and calibrates itself\n"
1921
<< " * Then it saves and reloads the calibration matricies\n"
2022
<< " * Then it creates an undistortion map and finaly\n"
@@ -29,7 +31,7 @@ int main(int argc, char *argv[]) {
2931
int board_w = 0;
3032
int board_h = 0;
3133

32-
if (argc < 4 || argc > 6) {
34+
if (argc != 6) {
3335
cout << "\nERROR: Wrong number of input parameters\n";
3436
help(argv);
3537
return -1;

example_19-02.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ void help(char *argv[]) {
88
<< "\nCall"
99
<< "\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>"
1010
<< "\n\nExample call:"
11-
<< "\n./example_19-2 12 12 20 500 0.5"
11+
<< "\n./example_19-2 9 6 20 500 0.5"
12+
<< "\n\n -- use the checkerboard9x6.png provided"
1213
<< "\n"
1314
<< endl;
1415
}
@@ -24,7 +25,7 @@ int main(int argc, char *argv[]) {
2425
int board_h = 0;
2526

2627
// Will be set by input list
27-
if (argc < 4 || argc > 6) {
28+
if (argc != 6) {
2829
cout << "\nERROR: Wrong number of input parameters, need 5, got " << argc - 1 << "\n";
2930
help(argv);
3031
return -1;

0 commit comments

Comments
 (0)