File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ void help(char **argv) {
15
15
<< " reading and collecting the requested number of views,\n "
16
16
<< " and calibrating the camera\n\n "
17
17
<< " 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 "
18
20
<< " * First it reads in checker boards and calibrates itself\n "
19
21
<< " * Then it saves and reloads the calibration matricies\n "
20
22
<< " * Then it creates an undistortion map and finaly\n "
@@ -29,7 +31,7 @@ int main(int argc, char *argv[]) {
29
31
int board_w = 0 ;
30
32
int board_h = 0 ;
31
33
32
- if (argc < 4 || argc > 6 ) {
34
+ if (argc != 6 ) {
33
35
cout << " \n ERROR: Wrong number of input parameters\n " ;
34
36
help (argv);
35
37
return -1 ;
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ void help(char *argv[]) {
8
8
<< " \n Call"
9
9
<< " \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>"
10
10
<< " \n\n Example 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"
12
13
<< " \n "
13
14
<< endl;
14
15
}
@@ -24,7 +25,7 @@ int main(int argc, char *argv[]) {
24
25
int board_h = 0 ;
25
26
26
27
// Will be set by input list
27
- if (argc < 4 || argc > 6 ) {
28
+ if (argc != 6 ) {
28
29
cout << " \n ERROR: Wrong number of input parameters, need 5, got " << argc - 1 << " \n " ;
29
30
help (argv);
30
31
return -1 ;
You can’t perform that action at this time.
0 commit comments