Mercurial > hg > nsaunier > traffic-intelligence
comparison c/feature-based-tracking.cpp @ 141:6f10a227486c
modifications to get nframes option working on the command line
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Wed, 24 Aug 2011 01:34:27 -0400 |
| parents | 8de5e8256224 |
| children | a3532db00c28 |
comparison
equal
deleted
inserted
replaced
| 140:8de5e8256224 | 141:6f10a227486c |
|---|---|
| 131 vector<FeatureTrajectoryPtr> lostFeatures; | 131 vector<FeatureTrajectoryPtr> lostFeatures; |
| 132 vector<FeaturePointMatch> featurePointMatches; | 132 vector<FeaturePointMatch> featurePointMatches; |
| 133 | 133 |
| 134 int key = '?'; | 134 int key = '?'; |
| 135 unsigned int savedFeatureId=0; | 135 unsigned int savedFeatureId=0; |
| 136 for (int frameNum = params.frame1; ((params.frame1+frameNum < params.nFrames) || (params.nFrames < 0)) && !::interruptionKey(key); frameNum++) { | 136 for (int frameNum = params.frame1; ((frameNum-params.frame1 < params.nFrames) || (params.nFrames < 0)) && !::interruptionKey(key); frameNum++) { |
| 137 capture >> frame; | 137 capture >> frame; |
| 138 cout << frameNum << " " << capture.get(CV_CAP_PROP_POS_FRAMES) << " " << prevPts.size() << endl; | 138 cout << frameNum << " " << capture.get(CV_CAP_PROP_POS_FRAMES) << " " << prevPts.size() << endl; |
| 139 while (frame.empty()) | 139 while (frame.empty()) |
| 140 capture >> frame;//break; | 140 capture >> frame;//break; |
| 141 | 141 |
