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

Two questions about TSDF #28

Open
TheodoreG opened this issue May 30, 2019 · 0 comments
Open

Two questions about TSDF #28

TheodoreG opened this issue May 30, 2019 · 0 comments

Comments

@TheodoreG
Copy link

Hi,
Thank you so much for your code, and it helps mu a lot. But I have two problems about the conversion from point cloud to TSDF file.

  1. From the PCL tutorial http://pointclouds.org/documentation/tutorials/using_kinfu_large_scale.php and the picture from it we can see that TSDF gird has "1" for area without surface and "0" for area.
    image

But from your code it computes "1" for area, like in

voxel_grid_TDF[voxel_idx] = 1.0f; // on surface

So is there any significant difference between those two format?
2. The dist variable computed from
float dist = sqrtf(xd * xd + yd * yd + zd * zd) / (float)search_radius;
may be larger than 1.0. Suppose xd=yd=zd=5, search_radius=5, then dist=1.73.
Is it better to change the norm term into "sqrt(3) * search_radius" to make "dist" smaller than 1.0?

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

1 participant