add create_from_sparse_indices for VoxelGrid - #7327
Conversation
|
Thanks for submitting this pull request! The maintainers of this repository would appreciate if you could update the CHANGELOG.md based on your changes. |
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
ssheorey
left a comment
There was a problem hiding this comment.
Hi @GouMinghao thanks for submitting this PR! Does this function meet your needs?
CreateFromPointCloud()
You can first create a point cloud from the indices (these will be the coordinates of the point cloud) and the colors, and then use this function.
Thank you for your reply, but I believe you suggestion does the job in some indirect way and sacrifices performance So it would be better to do it in the direct way as it is very important and common in OCC visualization |
|
@ssheorey Could please have a look on this pr again, thanks! |
|
@GouMinghao please post performance comparison for the two approaches if you believe your approach is significantly faster than the existing method. Use a reasonable sized point cloud (say 1M-5M points). |
add create_from_sparse_indices for VoxelGrid
Type
Motivation and Context
Motivation: I need to create voxel grid given sparse 3d indices but found it is not implemented.
It is implmented in this PR
Checklist:
python util/check_style.py --applyto apply Open3D code styleto my code.
updated accordingly.
results (e.g. screenshots or numbers) here.
Description
add create_from_sparse_indices for VoxelGrid

the result of my added python test is given in the image below