Module: Convert Geometry To Label ()
This module generates a binary or label map that provides a voxel-based representation of a continuous geometry input, which can be an open or closed surface, a set of lines or spatial graph, or a set of points.
Only voxels intersecting the object will be highlighted in the output, i.e. voxels containing a vertex or landmark, intersecting a line or a triangle.
For Line Sets and Spatial Graphs, each line segment of the input is traced as voxels using the Bresenham line algorithm.
An input closed surface will be transformed into a closed set of voxels (in the 26-neighborhood connectivity sense). The inside of a closed structure is not being filled (see Scan Surface To Volume for this purpose).
Data [required]
Continuous geometry data that is to be discretized on a voxel map. Supported types are HxSurface, HxSpatialGraph, HxLineSet, HxCluster and HxLandmark.Reference [optional]
Reference regular 3D field, defining the output voxel grid: bounding box, number and size of voxels.
Use Input BBox
If Reference port is not used, this port copies the bounding box of the input Data in the Bounding Box port.Bounding Box
Bounding Box of the resulting field.Grid Definition
Definition of the voxel grid within the specified Bounding Box either through a number of voxels, or through the voxel size.Grid Size
Number of voxels subdividing the Bounding Box in x/y/z.Grid Spacing
Voxel size for the output field.
Label output
The output will be a binary image if this parameter is not checked. Otherwise, a label map is generated, and a unique ID is given to the different elements of the Data.
If multiple elements contribute to a same voxel, the highest ID is assigned.
For HxSurface: the output label will be the Patch number, for HxLineSet: the line ID and for HxSpatialGraph: the segment ID.
HxLandmark and HxCluster are labelled by point ID.