Skip to content

Commit

Permalink
fix 18-01, 19-2, add checkerboard9x6.png
Browse files Browse the repository at this point in the history
  • Loading branch information
garybradski committed Jun 21, 2017
1 parent 94dc66a commit ead6e82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion example_18-01.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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] << " <board_width> <board_height> <number_of_boards> <ms_delay_framee_capture> <image_scaling_factor>\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"
Expand All @@ -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;
Expand Down
5 changes: 3 additions & 2 deletions example_19-02.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
Expand Down

0 comments on commit ead6e82

Please sign in to comment.