Mercurial Hosting > traffic-intelligence
diff c/feature-based-tracking.cpp @ 154:668710d4c773
updated computeTranslation with cv2
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Wed, 07 Sep 2011 16:35:51 -0400 |
parents | 0089fb29cd26 |
children | cde87a07eb58 |
line wrap: on
line diff
--- a/c/feature-based-tracking.cpp Tue Sep 06 19:22:24 2011 -0400 +++ b/c/feature-based-tracking.cpp Wed Sep 07 16:35:51 2011 -0400 @@ -165,6 +165,7 @@ //::keyPoints2Points(prevKpts, prevPts); currPts.clear(); calcOpticalFlowPyrLK(previousFrameBW, currentFrameBW, prevPts, currPts, status, errors, window, params.pyramidLevel, TermCriteria(3 /*static_cast<int>(TermCriteria::COUNT)+static_cast<int>(TermCriteria::EPS)*/, params.maxNumberTrackingIterations, params.minTrackingError), 0.5 /* unused */, 0); // OPTFLOW_USE_INITIAL_FLOW + /// \todo try calcOpticalFlowFarneback vector<Point2f> trackedPts; vector<FeaturePointMatch>::iterator iter = featurePointMatches.begin();