Mercurial Hosting > traffic-intelligence
diff c/Motion.cpp @ 565:f86f5f25730a
changed test for motion from < to <= so that completely stationary features could be extracted
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Thu, 24 Jul 2014 01:06:34 -0400 |
parents | 46b5cb3f3114 |
children | 045d05cef9d0 |
line wrap: on
line diff
--- a/c/Motion.cpp Mon Jul 21 16:17:22 2014 -0400 +++ b/c/Motion.cpp Thu Jul 24 01:06:34 2014 -0400 @@ -51,7 +51,7 @@ float disp = 0; for (unsigned int i=0; i<nDisplacements; i++) disp += displacementDistances[nPositions-2-i]; - result = disp < minTotalFeatureDisplacement; + result = disp <= minTotalFeatureDisplacement; } return result; }