Mercurial Hosting > traffic-intelligence
diff scripts/test-compute-object-position-from-features.py @ 936:56cc8a1f7082
removed all old versions of projection methods
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Fri, 14 Jul 2017 16:48:42 -0400 |
parents | 1d90e9080cb2 |
children | 933670761a57 |
line wrap: on
line diff
--- a/scripts/test-compute-object-position-from-features.py Fri Jul 14 16:30:57 2017 -0400 +++ b/scripts/test-compute-object-position-from-features.py Fri Jul 14 16:48:42 2017 -0400 @@ -41,7 +41,7 @@ yCoordinates = -np.ones((len(features),int(timeInterval.length()))) for i,f in enumerate(features): traj = f.getPositions().asArray() - imgTraj = cvutils.projectArray(homography, traj) + imgTraj = cvutils.homographyProject(traj, homography) yCoordinates[i,f.getFirstInstant()-timeInterval.first:f.getLastInstant()+1-timeInterval.first] = imgTraj[1,:] indices = np.argmax(yCoordinates,0)