Skip to content

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

Merged
mvieth merged 2 commits intoPointCloudLibrary:masterfrom
mvieth:voxel_grid_occlusion_estimation
Nov 15, 2023
Merged

VoxelGridOcclusionEstimation: fix behaviour if sensor origin is inside the voxel grid#5867
mvieth merged 2 commits intoPointCloudLibrary:masterfrom
mvieth:voxel_grid_occlusion_estimation

Conversation

@mvieth
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

@mvieth
Copy link
Copy Markdown
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
@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