Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sample/mesh_sampling.cpp] Cannot sample the number of points I want #59

Open
qinglew opened this issue Feb 16, 2021 · 1 comment
Open

Comments

@qinglew
Copy link

qinglew commented Feb 16, 2021

Description

I compiled this code successfully and got a executable file mesh_sampling. After I running the command ./mesh_sampling -h, it shows that -n_samples is the option of the number of points to sample. But When I run the command ./mesh_sampling input.obj output.pcd -n_samples 16384, it cannot generate 16384 points in the output pcd file. Generally, the number of points in output point cloud is less than I want. The ground truth you mentioned in paper has 16384 points. How do you get 16384 points by this tool?

Environment

  • Ubuntu 18.04 LTS
  • GCC 7.5.0
  • VTK 9.0.1
@k2so3
Copy link

k2so3 commented Feb 9, 2023

I ran into this issue earlier this week. For posterity, the way I fixed it was by either reducing the leaf_size, or running with the no_vox_filter flag , which prevents the pcd from getting downsampled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants