comparison python/cvutils.py @ 243:e0988a8ace0c

started adapting and moving to other modules Mohamed's work
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Mon, 16 Jul 2012 04:57:35 -0400
parents eb4525853030
children 571ba5ed22e2
comparison
equal deleted inserted replaced
242:942455aff829 243:e0988a8ace0c
179 return p 179 return p
180 180
181 def project(homography, p): 181 def project(homography, p):
182 '''Returns the coordinates of the projection of the point p 182 '''Returns the coordinates of the projection of the point p
183 through homography''' 183 through homography'''
184 from numpy.core.multiarray import array 184 from numpy import array
185 return projectArray(homography, array([[p[0]],p[1]])) 185 return projectArray(homography, array([[p[0]],[p[1]]]))
186 186
187 def projectTrajectory(homography, trajectory): 187 def projectTrajectory(homography, trajectory):
188 '''Projects a series of points in the format 188 '''Projects a series of points in the format
189 [[x1, x2, ...], 189 [[x1, x2, ...],
190 [y1, y2, ...]]''' 190 [y1, y2, ...]]'''