Skip to content

Commit

Permalink
fix notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Victorlouisdg committed Jan 18, 2024
1 parent 1e1755b commit d387380
Show file tree
Hide file tree
Showing 5 changed files with 308 additions and 111 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def filter_point_cloud(point_cloud: PointCloud, mask: Any) -> PointCloud:
return point_cloud_filtered


def crop_point_cloud_mask(point_cloud: PointCloud, bounding_box: BoundingBox3DType) -> np.ndarray:
def generate_point_cloud_crop_mask(point_cloud: PointCloud, bounding_box: BoundingBox3DType) -> np.ndarray:
"""Creates a mask that can be used to filter a point cloud to the given bounding box.
Args:
Expand Down Expand Up @@ -59,5 +59,5 @@ def crop_point_cloud(
Returns:
the new cropped point cloud
"""
crop_mask = crop_point_cloud_mask(point_cloud, bounding_box)
crop_mask = generate_point_cloud_crop_mask(point_cloud, bounding_box)
return filter_point_cloud(point_cloud, crop_mask.nonzero())
Loading

0 comments on commit d387380

Please sign in to comment.