Spaces:
Sleeping
Sleeping
Update utils/pointcloud_tools.py
Browse files
utils/pointcloud_tools.py
CHANGED
|
@@ -21,7 +21,7 @@ class PointCloudProcessor:
|
|
| 21 |
if len(points) == 0:
|
| 22 |
return points
|
| 23 |
|
| 24 |
-
z_scores = np.abs(
|
| 25 |
return points[(z_scores < z_thresh).all(axis=1)]
|
| 26 |
|
| 27 |
@staticmethod
|
|
|
|
| 21 |
if len(points) == 0:
|
| 22 |
return points
|
| 23 |
|
| 24 |
+
z_scores = np.abs(points - np.mean(points, axis=0)) / np.std(points, axis=0)
|
| 25 |
return points[(z_scores < z_thresh).all(axis=1)]
|
| 26 |
|
| 27 |
@staticmethod
|