コード例 #1
0
def cvpoint_of_pt(pts):
	"""
	   Careful this returns a list
	"""
	def cvpoint(pt):
		return cv.cvPoint(int(round(pt[0,0])), int(round(pt[1,0])))
	return map(cvpoint, ut.list_of_mat(pts))
コード例 #2
0
ファイル: connected_comp.py プロジェクト: janfrs/kwc-ros-pkg
 def to_euclid(c):
     ranges, indices = c
     return list(ut.list_of_mat(euclid_of_laser(scan, indices=np.matrix(indices))))
コード例 #3
0
 def to_euclid(c):
     ranges, indices = c
     return list(
         ut.list_of_mat(euclid_of_laser(scan, indices=np.matrix(indices))))