Skip to content

Commit

Permalink
add parameter to grid.map_leaf_points_cuda_ransac
Browse files Browse the repository at this point in the history
  • Loading branch information
true-real-michael committed Mar 28, 2024
1 parent f9e7f80 commit 4953158
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion octreelib/grid/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,14 @@ def map_leaf_points_cuda_ransac(
poses_per_batch: int = 10,
threshold: float = 0.01,
hypotheses_number: int = 1024,
initial_points_number: int = 6,
):
"""
transform point cloud in the node using the function
:param poses_per_batch: Number of poses per batch.
:param threshold: Distance threshold.
:param hypotheses_number: Number of RANSAC iterations (<= 1024).
:param initial_points_number: Number of initial points to use in RANSAC.
"""
if threshold <= 0:
raise ValueError("Threshold must be positive")
Expand All @@ -156,8 +158,9 @@ def map_leaf_points_cuda_ransac(

# this is needed to initialize the random number generators on the GPU
ransac = CudaRansac(
hypotheses_number=hypotheses_number,
threshold=threshold,
hypotheses_number=hypotheses_number,
initial_points_number=initial_points_number,
)

# process each batch
Expand Down

0 comments on commit 4953158

Please sign in to comment.