Skip to content

Commit 9f44d89

Browse files
committed
16 - 18
1 parent f7b1a9d commit 9f44d89

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ This is the example code that accompanies Learning OpenCV 3 by Adrian Kaehler an
88
* ~~In progress June 20, 2017~~
99
* ~~In progress June 22, 2017~~
1010
* ~~In progress July 02, 2017~~
11+
* In progress July 03, 2017
1112

1213
**To do:**
1314
* ~~Chapter 15~~
@@ -20,7 +21,7 @@ This is the example code that accompanies Learning OpenCV 3 by Adrian Kaehler an
2021
* ~~Chapter 22~~
2122

2223
Checking Chapters
23-
~~2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15~~ 16 17 18 19 20 ~~21 22 23~~
24+
~~2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18,~~ 19, 20, ~~21 22 23~~
2425

2526
* Submit associated errata for ~~15 16~~ 17 18 19 20 21 22
2627
* Throw in some bonus material

example_16-01.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ using namespace std;
88
static const int MAX_CORNERS = 1000;
99

1010
void help( char** argv ) {
11-
cout << "Call: " <<argv[0] <<" [image1] [image2]" << endl;
12-
cout << "Demonstrates Pyramid Lucas-Kanade optical flow." << endl;
11+
cout << "\nExample 16-1: Pyramid L-K optical flow example.\n" << endl;
12+
cout << "Call: " <<argv[0] <<" [image1] [image2]\n" << endl;
13+
cout << "\nExample:\n" << argv[0] << " ../example_16-01-imgA.png ../example_16-01-imgB.png\n" << endl;
14+
cout << "Demonstrates Pyramid Lucas-Kanade optical flow.\n" << endl;
1315
}
1416

1517
int main(int argc, char** argv) {

example_17-01.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ using std::endl;
1616

1717
void help(char** argv ) {
1818
cout << "\n"
19-
<< "Example code for using cv::KalmanFilter\n"
19+
<< "Example 17-1: code for using cv::KalmanFilter\n"
2020
<< argv[0] << "\n\n"
2121
<< "For example:\n"
2222
<< argv[0] <<"\n\n"

example_17-02.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ int main(int argc, char** argv) {
4545
// Program expects at least one argument that is path to video file
4646
//
4747
if (argc < 2) {
48-
cerr << "Use:\n" << argv[0] << " <video_file>\n"
49-
<< "to run this demo\n";
48+
cerr << "\nExample 17-2: Farnback optical flow example\n"
49+
<< "Use:\n" << argv[0] << " <path/video_file>\n"
50+
<< "Example:\n" << argv[0] << " ../test.avi\n"
51+
<< std::endl;
5052
exit(1);
5153
}
5254

example_18-01.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ void help(char **argv) { // todo rewrite this
1414
<< " reading and collecting the requested number of views,\n"
1515
<< " and calibrating the camera\n\n"
1616
<< "Call:\n" << argv[0] << " <board_width> <board_height> <number_of_boards> <if_video,_delay_between_framee_capture> <image_scaling_factor>\n\n"
17-
<< "Example:\n./example_18-01 9 6 15 500 0.5\n"
17+
<< "Example:\n" << argv[0] << " 9 6 15 500 0.5\n"
1818
<< "-- to use the checkerboard9x6.png provided\n\n"
1919
<< " * First it reads in checker boards and calibrates itself\n"
2020
<< " * Then it saves and reloads the calibration matricies\n"

0 commit comments

Comments
 (0)