public class SoCenterLineApproximation3d extends SoImageVizEngine
SoCenterLineApproximation3d
engine
The engine extracts the centerline of a binary image. A centerline is a path with a tree topology that approximates the input shape. The extraction procedure enforces the path to be equidistant to its boundaries.
The engine searches for a graph with tree topology (without loops). If the object contains loops this algorithms will not fail, instead it will just ignore certain connectivity so that the tree topology of graph is preserved.
The engine searches iteratively for the longest branch that can be added to the tree.
File format/default:
CenterLineApproximation3d {
inBinaryImage | NULL |
autoMode | false |
numberOfBranches | 1 |
newBranchSensibility | 3.0 |
distanceMapSmoothing | 0.3 |
smoothingIteration | 3 |
Notice: This engine requires to preliminarily load the whole input data set into memory to be computed. As a consequence the input data set will be automatically loaded before the execution of this engine, ignoring the maximum memory parameter of the SbImageDataAdapterHelper.getAppropriateAdapter function or SoFileDataAdapter class
If the input data set cannot fit in memory, this engine will fail during its computation. |
Library references: centerline3d
SoImageVizEngine.ComputeModes, SoImageVizEngine.EventArg, SoImageVizEngine.Neighborhood3ds
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFBool |
autoMode
If this parameter is set to true the number of branches is computed automatically (the parameter
newBranchSensibility controls the adding of new branches) otherwise branches are added until numberOfBranches connections is reached. |
SoSFDouble |
distanceMapSmoothing
This parameter controls the smoothing of the distance map which is computed internally to make the tree centered.
|
SoSFImageDataAdapter |
inLabelImage
Input label image.
|
SoSFDouble |
newBranchSensibility
This parameter controls the adding of a new branch in the tree in automatic mode.
|
SoSFUInt32 |
numberOfBranches
Number of branches iteratively added to the reconstructed centerline tree.
|
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> |
outBinaryImage
Output centerline.
|
SoImageVizEngineOutput<SoSFFieldContainer,SoIndexedLineSet> |
outLineSet
Output line set.
|
SoSFUInt32 |
smoothingIteration
Number of smoothing iteration of the output line set (post processing).
|
CONNECTIVITY_18, CONNECTIVITY_26, CONNECTIVITY_6, MODE_2D, MODE_3D, MODE_AUTO, onBegin, onEnd, onProgress
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoCenterLineApproximation3d()
Constructor.
|
abortEvaluate, isEvaluating, startEvaluate, waitEvaluate
copy, getByName, getOutput, getOutputName
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable, touch
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public final SoSFImageDataAdapter inLabelImage
public final SoSFBool autoMode
newBranchSensibility
controls the adding of new branches) otherwise branches are added until numberOfBranches
connections is reached.
Default value is false.public final SoSFUInt32 numberOfBranches
public final SoSFDouble newBranchSensibility
public final SoSFDouble distanceMapSmoothing
public final SoSFUInt32 smoothingIteration
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outBinaryImage
public final SoImageVizEngineOutput<SoSFFieldContainer,SoIndexedLineSet> outLineSet
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com