简体   繁体   English

给定 3D 中的一个点和一个体素网格,找到相应的体素

[英]Given a point in 3D and a voxel grid, find the corresponding voxel(s)

I am a newbie in 3D computer vision, currently solving the following problem in Python:我是3D计算机视觉的新手,目前解决Python中的以下问题:

I have a voxel grid in 3D and a random point in 3D.我在 3D 中有一个体素网格,在 3D 中有一个随机点。 I want to find which voxel this point falls into.我想找出这个点属于哪个体素。 Is there some simple way how to do this?有没有一些简单的方法可以做到这一点?

More advanced question is - is there some way to interpolate between voxels?更高级的问题是 - 有没有办法在体素之间进行插值? Meaning if a point is near the boundary between two voxels, can I get the corresponding voxels and some weights?这意味着如果一个点靠近两个体素之间的边界,我可以获得相应的体素和一些权重吗?

Thanks!谢谢!

Floor every dimension of the point and multiply by voxel size for the exact voxel you're looking for对点的每个维度进行铺平,并乘以体素大小以获得您正在寻找的确切体素

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM