comparison python/cvutils.py @ 319:6b65b26c1e46

minor
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Mon, 06 May 2013 15:27:11 +0200
parents 82b9be447608
children 5f75d6c23ed5
comparison
equal deleted inserted replaced
318:82a8fba99bec 319:6b65b26c1e46
186 return prod[0:2]/prod[2] 186 return prod[0:2]/prod[2]
187 else: 187 else:
188 return p 188 return p
189 189
190 def project(homography, p): 190 def project(homography, p):
191 '''Returns the coordinates of the projection of the point p 191 '''Returns the coordinates of the projection of the point p with coordinates p[0], p[1]
192 through homography''' 192 through homography'''
193 from numpy import array 193 from numpy import array
194 return projectArray(homography, array([[p[0]],[p[1]]])) 194 return projectArray(homography, array([[p[0]],[p[1]]]))
195 195
196 def projectTrajectory(homography, trajectory): 196 def projectTrajectory(homography, trajectory):