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))
def to_euclid(c): ranges, indices = c return list(ut.list_of_mat(euclid_of_laser(scan, indices=np.matrix(indices))))
def to_euclid(c): ranges, indices = c return list( ut.list_of_mat(euclid_of_laser(scan, indices=np.matrix(indices))))