diff c/feature-based-tracking.cpp @ 418:ca5784652d57

updated use of calcOpticalFlowPyrLK for new signature, added minEigThreshold parameter in configuration file
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Thu, 03 Oct 2013 17:43:15 -0400
parents 97cb5c969ef2
children f43bc0b0ba74
line wrap: on
line diff
--- a/c/feature-based-tracking.cpp	Thu Sep 26 17:07:44 2013 -0400
+++ b/c/feature-based-tracking.cpp	Thu Oct 03 17:43:15 2013 -0400
@@ -164,7 +164,7 @@
       if (!prevPts.empty()) {
 	//::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
+	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), /* int flags = */ 0, params.minFeatureEigThreshold);
 	/// \todo try calcOpticalFlowFarneback
 
 	std::vector<Point2f> trackedPts;