public class SoPruningProcessing2d extends SoImageVizEngine
SoPruningProcessing2d
engine.
The SoPruningProcessing2d
engine prunes the result of a skeletonization. It removes all object voxels having only one neighbor. It can be applied either specifying a number of iterations or until convergence. This filter can be used for removing terminal branches from a skeleton.
The skeleton is very sensitive to small distortions on the edges of the objects, generating artefacts. The SoPruningProcessing2d
engine eliminates these artefacts by thinning with the following structuring element until convergence.
The corresponding structuring element is:
The problem is to determine the number of iterations for the pruning as thinning until convergence will remove all the skeletons except loops and branches intersecting the frame of the image in permissive mode. The strict mode will also stop when an intersection or a right angle is encountered.
See also: SoSkeletonProcessing, SoPruningProcessing3d
.
File format/default:
PruningProcessing2d {
inBinaryImage | NULL |
pruningMode | RIGOROUS |
maxLength | 1 |
Library references: pruning
Modifier and Type | Class and Description |
---|---|
static class |
SoPruningProcessing2d.PruningModes |
SoImageVizEngine.ComputeModes, SoImageVizEngine.EventArg, SoImageVizEngine.Neighborhood3ds
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFImageDataAdapter |
inBinaryImage
The input image.
|
SoSFInt32 |
maxLength
Enter the number of iterations (0:until convergence) Default value is 1.
|
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> |
outBinaryImage
The output binary image.
|
SoSFEnum<SoPruningProcessing2d.PruningModes> |
pruningMode
End point mode .
|
onBegin, onEnd, onProgress
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoPruningProcessing2d()
Constructor.
|
abortEvaluate, isEvaluating, startEvaluate, waitEvaluate
copy, getByName, getOutput, getOutputName
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable, touch
getNativeResourceHandle
public final SoSFImageDataAdapter inBinaryImage
public final SoSFEnum<SoPruningProcessing2d.PruningModes> pruningMode
public final SoSFInt32 maxLength
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outBinaryImage
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com