Convert To Label Map¶
Performs a voxelization to convert a mesh to a label map.
Input¶
A single mesh that should be converted to a label map. Optionally a reference volume defining the voxel grid of the output volume.
Output¶
A new 3D label map where the inside of the mesh is segmented as foreground and the outside is encoded as background.
Description¶
The algorithm performs a voxelization (conversion) of a mesh to a label map.
Note
The input mesh must be manifold (watertight) in order to yield correct voxelization results.
Depending on the input it works in one of the following two modes:
- If no reference volume is provided then the output label map is created as axis-aligned voxel grid wrt. the input mesh coordinate system and with the pixel spacing as configured.
- If a reference volume is provided the algorithm will create one label map for each image in the reference SharedImageSet matching its orientation and spacing.
It offers the following configuration options:
- If no reference image is provided you can define the Output Spacing of the resulting label map. Be advised that this implicitly defines the label map resolution (number of voxels) and you may exceed the capabilities of your system if the chosen spacing is too small.
- You can also configure how large the Margin around the voxelized mesh should be in terms of voxels (unless you provide a reference image).
- The Outside Value and Inside Value settings define which voxel values should be used in the resulting label map.