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

Function pc_normalize

data_utils/ShapeNetDataLoader.py:9–14  ·  view source on GitHub ↗
(pc)

Source from the content-addressed store, hash-verified

7warnings.filterwarnings('ignore')
8
9def pc_normalize(pc):
10 centroid = np.mean(pc, axis=0)
11 pc = pc - centroid
12 m = np.max(np.sqrt(np.sum(pc ** 2, axis=1)))
13 pc = pc / m
14 return pc
15
16class PartNormalDataset(Dataset):
17 def __init__(self,root = './data/shapenetcore_partanno_segmentation_benchmark_v0_normal', npoints=2500, split='train', class_choice=None, normal_channel=False):

Callers 1

__getitem__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected