comparison c/optical-flow.cpp @ 11:e77e2fd69b02

modularized code (not compiling)
author Nicolas Saunier <nico@confins.net>
date Wed, 11 Nov 2009 12:01:43 -0500
parents 068cf45c3f1b
children ff5403319cec
comparison
equal deleted inserted replaced
10:068cf45c3f1b 11:e77e2fd69b02
19 19
20 int frameNum = 0; 20 int frameNum = 0;
21 time_t seconds; 21 time_t seconds;
22 time_t t0 = time(NULL); 22 time_t t0 = time(NULL);
23 while (frame) { 23 while (frame) {
24 if (frameNum%1000 == 0) { 24 ::goToFrameNum(capture, frameNum, frameNum+1000);
25 seconds = time(NULL)-t0; 25 seconds = time(NULL)-t0;
26 26
27 cout << frameNum << " " << seconds << endl; 27 cout << frameNum << " " << seconds << endl;
28 }
29 // cvConvertImage(frame, bwFrame);
30
31 // for (int i=0; i<frame->height; ++i)
32 // for (int j=0; j<frame->width; ++j)
33 // int gray = cvGetReal2D(bwFrame, i, j);
34 28
35 frame = cvQueryFrame(inputVideo); 29 frameNum+=1000;
36 frameNum++;
37 } 30 }
38 31
39 return 1; 32 return 1;
40 } 33 }