(pcd, mu=0, sigma=0.1)
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected