Difference between revisions of "Documentation/Nightly/Modules/ModelToLabelMap"
From Slicer Wiki
(Prepend documentation/versioncheck template. See http://na-mic.org/Mantis/view.php?id=2887) |
|||
Line 29: | Line 29: | ||
<gallery> | <gallery> | ||
− | Image:Slicer4- | + | Image:Slicer4-ModelToLabelMap-GUI.jpeg|GUI panel |
Image:Slicer4-PolyDataToLabelMap-Output.jpeg|Surface model overlaid on reference image with generated label map shown in purple on 2d slices | Image:Slicer4-PolyDataToLabelMap-Output.jpeg|Surface model overlaid on reference image with generated label map shown in purple on 2d slices | ||
</gallery> | </gallery> | ||
Line 45: | Line 45: | ||
{| | {| | ||
− | |[[Image:Slicer4- | + | |[[Image:Slicer4-ModelToLabelMap-GUI.jpeg|thumb|right|280px|Input/Output panels. This module takes as input: '''Input Volume''' as the reference volume. '''Model''' is the surface model from whose interior is to be labeled. The output of this module is '''Output Volume''', the output label map. Output Volume has the same image parameters (size, resolution, orientation, etc) as Input Volume. The model needs to be closed or else the output volume will be flooded.]] |
− | |[[Image: | + | |[[Image:ModelToLabelMap-ParametersPanel-4-3.png|thumb|right|280px|Parameters panels. Since the surface can be very sparsely triangulated, this module first resamples the input surface model in an appropriate resolution. The parameter '''Sample Distance''' controls how fine the surface is sampled. The ballpark value for this parameter is the smallest size of voxels (in mm) in Input Volume. The parameter '''Label Value''' lets the user pick which value will be written into the output label map.]] |
|} | |} | ||
Revision as of 20:51, 18 July 2013
Home < Documentation < Nightly < Modules < ModelToLabelMap
For the latest Slicer documentation, visit the read-the-docs. |
Introduction and Acknowledgements
| |||||||
|
Module Description
Intersects an input model with an reference volume and produces an output label map. The algorithm uses flood fill from the model's center of mass, open models or ones with multiple pieces will not work well. The label map is constrained to be unsigned char, so the input label value is only valid in the range 0-255.
Use Cases
- This module may be thought of as the inverse of Marching Cubes (Model Maker module), except that only the surface points are set in the label map, not the interior.
- It is useful if you only have a surface model and wish to do volumetric processing on an image
Tutorials
N/A
Panels
Parameters:
- Settings: Parameter settings
- Sample distance (sampleDistance): Determines how finely the surface is sampled. Used for the distance argument in the vtkPolyDataPointSampler.
- Label value (labelValue): The unsigned char label value to use in the output label map.
- IO: Input/output
- Input Volume (InputVolume): Input volume
- Model (surface): Input model
- Output Volume (OutputVolume): Unsigned char label map volume
List of parameters generated transforming this XML file using this XSL file. To update the URL of the XML file, edit this page.
Similar Modules
N/A
References
N/A
Information for Developers
Section under construction. |