MCPcopy Create free account
hub / github.com/MetaSLAM/SphereVLAD / pc_normalize

Function pc_normalize

utils/pointProcess.py:7–12  ·  view source on GitHub ↗
(pc)

Source from the content-addressed store, hash-verified

5
6
7def pc_normalize(pc):
8 centriod = np.mean(pc, axis=0)
9 pc = pc - centriod
10 m = np.max(np.sqrt(np.sum(pc**2, axis=1)))
11 pc = pc / m
12 return pc
13
14
15def pcd_downsample(initPcd, desiredNumOfPoint, leftVoxelSize, rightVoxelSize):

Callers 1

load_file_funcMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected