Mercurial Hosting > traffic-intelligence
diff python/moving.py @ 318:82a8fba99bec
minor
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Sun, 21 Apr 2013 22:38:16 -0400 |
parents | d280b881e860 |
children | 42f2b46ec210 |
line wrap: on
line diff
--- a/python/moving.py Fri Apr 12 18:03:04 2013 -0400 +++ b/python/moving.py Sun Apr 21 22:38:16 2013 -0400 @@ -400,9 +400,7 @@ plot([positions[0][0]], [positions[1][0]], 'ro', **kwargs) def project(self, homography): - from numpy.core.multiarray import array - projected = cvutils.projectArray(homography, array(self.positions)) - return Trajectory(projected) + return Trajectory(cvutils.projectTrajectory(homography, self.positions)) def draw(self, options = '', withOrigin = False, timeStep = 1, **kwargs): Trajectory._draw(self.positions, options, withOrigin, None, timeStep, **kwargs)