MCPcopy Create free account
hub / github.com/Pointcept/SegmentAnything3D / visualize_partition

Function visualize_partition

util.py:255–261  ·  view source on GitHub ↗
(coord, group_id, save_path)

Source from the content-addressed store, hash-verified

253
254
255def visualize_partition(coord, group_id, save_path):
256 group_id = group_id.reshape(-1)
257 num_groups = group_id.max() + 1
258 group_colors = np.random.rand(num_groups, 3)
259 group_colors = np.vstack((group_colors, np.array([0,0,0])))
260 color = group_colors[group_id]
261 save_point_cloud(coord, color, save_path)
262
263
264def delete_invalid_group(group, group_feat):

Callers 1

pcd_ensembleFunction · 0.85

Calls 1

save_point_cloudFunction · 0.85

Tested by

no test coverage detected