point-cloud-utils icon indicating copy to clipboard operation
point-cloud-utils copied to clipboard

Attribute Error: module 'point_cloud_utils' has no attribute 'downsample_point_cloud_voxel_grid'

Open rahul28suresh opened this issue 1 year ago • 1 comments

Hi there,

Thanks for your hardwork contributing to the scientific community.

I am having issues running the downsample_point_cloud_voxel_grid example.

v, n, and c seem to be correct and I can use other functions like load_mesh_vnc from pcu but not downsample_point_cloud_voxel_grid. I have posted the code below.

v = np.row_stack(rot_trans_tees_tight) n = np.row_stack(rot_trans_tees_tight_normals) c = np.row_stack(labels)

num_voxels_per_axis = 128 bbox_size = v.max(0) - v.min(0) size_of_voxel = bbox_size / num_voxels_per_axis min_points_per_voxel = 3 v_sampled, n_sampled, c_sampled = pcu.downsample_point_cloud_voxel_grid(sizeof_voxel, v, n, c, min_points_per_voxel=min_points_per_voxel)

Error Message

 7 size_of_voxel = bbox_size / num_voxels_per_axis
  8 min_points_per_voxel = 3

----> 9 v_sampled, n_sampled, c_sampled = pcu.downsample_point_cloud_voxel_grid(sizeof_voxel, v, n, c, 10 min_points_per_voxel=min_points_per_voxel) 11 # print(size_of_voxel)

AttributeError: module 'point_cloud_utils' has no attribute 'downsample_point_cloud_voxel_grid'

rahul28suresh avatar Mar 20 '24 08:03 rahul28suresh

I met the same issue. I did not find anywhere that defines downsample_point_cloud_voxel_grid. Did you solve the issue?

C-H-Chien avatar Sep 08 '24 00:09 C-H-Chien