Mercurial Hosting > traffic-intelligence
diff c/feature-based-tracking.cpp @ 176:9323427aa0a3
changed positions and velocities to shared pointers and renamed methods
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Thu, 27 Oct 2011 13:56:46 -0400 |
parents | a234a5e818f3 |
children | ae2286b1a3fd |
line wrap: on
line diff
--- a/c/feature-based-tracking.cpp Wed Oct 26 19:09:50 2011 -0400 +++ b/c/feature-based-tracking.cpp Thu Oct 27 13:56:46 2011 -0400 @@ -174,8 +174,8 @@ if (status[iter->pointNum]) { iter->feature->addPoint(frameNum, currPts[iter->pointNum], homography); - deleteFeature |= iter->feature->smallDisplacement(params.nDisplacements, minTotalFeatureDisplacement) - || !iter->feature->motionSmooth(params.accelerationBound, params.deviationBound); + deleteFeature |= iter->feature->isDisplacementSmall(params.nDisplacements, minTotalFeatureDisplacement) + || !iter->feature->isMotionSmooth(params.accelerationBound, params.deviationBound); if (deleteFeature) iter->feature->shorten(); } else