arcadelab / deepdrr

Code for "DeepDRR: A Catalyst for Machine Learning in Fluoroscopy-guided Procedures". https://arxiv.org/abs/1803.08606
GNU General Public License v3.0
209 stars 60 forks source link

Voxelize multi-mesh volumes directly onto shared grid #85

Closed liamjwang closed 1 year ago

liamjwang commented 1 year ago

When converting a multi-mesh structure into a volume, voxelize each mesh directly onto a shared grid instead of voxelizing each component separately and re-rasterizing onto a shared grid. This makes voxelization faster and more accurate.

Also add a from_meshes classmethod to the Volume class to create multi-mesh volumes for cases when the file structure for creating instruments is not desired.