MCPcopy Create free account
hub / github.com/d62lu/3DCTN / pc_normalize

Function pc_normalize

data_utils/ModelNetDataLoader.py:17–22  ·  view source on GitHub ↗
(pc)

Source from the content-addressed store, hash-verified

15
16
17def pc_normalize(pc):
18 centroid = np.mean(pc, axis=0)
19 pc = pc - centroid
20 m = np.max(np.sqrt(np.sum(pc**2, axis=1)))
21 pc = pc / m
22 return pc
23
24
25def farthest_point_sample(point, npoint):

Callers 1

_get_itemMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected