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

Method apply_noise

eval/eval_utils.py:167–172  ·  view source on GitHub ↗
(pcd, mu=0, sigma=0.1)

Source from the content-addressed store, hash-verified

165
166 @staticmethod
167 def apply_noise(pcd, mu=0, sigma=0.1):
168 noisy_pcd = deepcopy(pcd)
169 points = np.asarray(noisy_pcd.points)
170 points += np.clip(np.random.normal(mu, sigma, size=points.shape), -1, 1)
171 noisy_pcd.points = o3d.utility.Vector3dVector(points)
172 return noisy_pcd

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected