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

Voxel indices are not being computed correctly #1905

Closed
chambbj opened this issue Apr 6, 2018 · 0 comments
Closed

Voxel indices are not being computed correctly #1905

chambbj opened this issue Apr 6, 2018 · 0 comments

Comments

@chambbj
Copy link
Member

chambbj commented Apr 6, 2018

As reported on the mailing list:

The filter “voxelcenternearestneighbor” accepts a parameter “cell” which controls the voxel cell size. I cannot seem to get the software to accept a value lower than 1.0. ie. Any value lower than 1.0 outputs 1.0.

I verified this on my system. The cell parameter is being parsed correctly (values less than 1.0 are accepted), but because the division by the cell size occurs after the floor operation, we are losing the precision required to achieve a discretization of anything smaller than 1.0.

It impacts both filters.voxelcenternearestneighbor and filters.voxelcentroidnearestneighbor.

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