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

(feature/fVDB) [Question/Feature] How to add two VDBTensors with different topologies #1964

Open
OasisArtisan opened this issue Nov 12, 2024 · 1 comment

Comments

@OasisArtisan
Copy link

Thanks for the great work.

I had two questions:

1- Is it possible to add/aggregate VDB Tensors such that voxels that coincide are averaged or aggregated using an arbitrary function that the user can specify ?

2- Is fVDB a fixed sized voxel representation? I understand that OpenVDB allows storing voxels at different resolutions with the pruneGrid method for higher efficiency. Does fVDB still have this capability ?

Thank you

@OasisArtisan OasisArtisan changed the title (feature/fVDB) [Question/Feature] How can one add two VDB tensors (feature/fVDB) [Question/Feature] How to add two VDBTensors with different topologies Nov 12, 2024
@OasisArtisan
Copy link
Author

OasisArtisan commented Nov 12, 2024

I see from

def _binop(self, other, op):
if isinstance(other, VDBTensor):
return VDBTensor(self.grid, op(self.data, other.data), self.kmap)
else:
return VDBTensor(self.grid, op(self.data, other), self.kmap)

That it is possible to add VDBTensors as long as they have the same Grid/Topology. Is there a way to aggregate them if they have different Grids ?

The application I am interested in is robot mapping where multiple frames typically come sequentially each with its own point cloud and I would like to aggregate them with their features in a VDBTensor representation.

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