MCPcopy Create free account
hub / github.com/4DVLab/HuCenLife / paint_points

Function paint_points

seg_process/utils.py:25–30  ·  view source on GitHub ↗
(points, color=[192,0,0])

Source from the content-addressed store, hash-verified

23 return max_iou, max_idx
24
25def paint_points(points, color=[192,0,0]):
26 color = np.array([color])
27 new_pts = np.zeros([points.shape[0],6])
28 new_pts[:,:3] = points
29 new_pts[:, 3:] = new_pts[:, 3:] + color
30 return new_pts.astype(np.float32)
31
32def cal_corner_after_rotation(corner, center, r):
33 x1, y1 = corner

Callers 1

init_sceneMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected