Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix off-by-one error when writing out voxel grid #4

Merged
merged 1 commit into from
Jun 10, 2020

Conversation

risteon
Copy link
Contributor

@risteon risteon commented Jun 10, 2020

When writing the voxel grids to binary, the counter variable has an off-by-one error.
Besides the invalid memory access at the last vector position, this causes all voxels to be shifted one voxel upwards. Voxels in the top row are additionally shifted horizontally onto the next y-position.

I think that the voxelized annotations from http://semantic-kitti.org/dataset.html#download (downloaded on 2020-06-09) do also exhibit this error.

@jbehley
Copy link
Owner

jbehley commented Jun 10, 2020

That's a good catch. Thanks for finding this bug. I will see if I can recreate the data in the next days. Fortunately, it should not affect the metrics so much.

@jbehley jbehley merged commit ab5a8cd into jbehley:master Jun 10, 2020
@risteon risteon deleted the fix-counter-off-by-one branch June 19, 2020 14:06
risteon pushed a commit to risteon/voxelizer that referenced this pull request Jun 23, 2021
Fix off-by-one error when writing out voxel grid
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants