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

VoxelGridOcclusionEstimation: fix behaviour if sensor origin is inside the voxel grid #5867

Merged

Conversation

mvieth
Copy link
Member

@mvieth mvieth commented Nov 5, 2023

Fixes #5858

@mvieth mvieth added module: filters changelog: fix Meta-information for changelog generation labels Nov 5, 2023
@themightyoarfish
Copy link
Contributor

I can confirm that it now works on the sample cloud, although the viewer application is quite slow on it.

@mvieth
Copy link
Member Author

mvieth commented Nov 6, 2023

[...] although the viewer application is quite slow on it.

Yes, I also noticed that. Apparently, VTK takes quite some time to generate and show all the boxes. The second commit in this PR should at least improve the processing time a bit: Instead of drawing one box per point in the input cloud (meaning that very often the same box will be drawn multiple times), the viewer now draws only one box per occupied voxel.

- call Update() on vtk classes, otherwise the shown window is empty
- use the filtered cloud instead of whole input cloud, otherwise processing is very slow for larger clouds
- use the fixed RenderWindowInteractor
@mvieth mvieth force-pushed the voxel_grid_occlusion_estimation branch from 3d88342 to 190ae41 Compare November 9, 2023 19:53
@mvieth mvieth requested a review from larshg November 15, 2023 09:32
@mvieth mvieth merged commit 95504e6 into PointCloudLibrary:master Nov 15, 2023
13 checks passed
@mvieth mvieth deleted the voxel_grid_occlusion_estimation branch November 15, 2023 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: fix Meta-information for changelog generation module: filters
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[filters] VoxelGridOcclusionEstimation does not work with larger FOVs than 180°
3 participants