MCPcopy Create free account
hub / github.com/openai/point-e / pc_normalize

Function pc_normalize

point_e/evals/pointnet2_utils.py:40–46  ·  view source on GitHub ↗
(pc)

Source from the content-addressed store, hash-verified

38
39
40def pc_normalize(pc):
41 l = pc.shape[0]
42 centroid = np.mean(pc, axis=0)
43 pc = pc - centroid
44 m = np.max(np.sqrt(np.sum(pc**2, axis=1)))
45 pc = pc / m
46 return pc
47
48
49def square_distance(src, dst):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected