Class SoPruningProcessing2d
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.misc.SoBase
-
- com.openinventor.inventor.fields.SoFieldContainer
-
- com.openinventor.inventor.engines.SoEngine
-
- com.openinventor.imageviz.engines.SoImageVizEngine
-
- com.openinventor.imageviz.engines.mathematicalmorphology.hitormissandskeleton.SoPruningProcessing2d
-
- All Implemented Interfaces:
SafeDisposable
public class SoPruningProcessing2d extends SoImageVizEngine
SoPruningProcessing2d
engine. TheSoPruningProcessing2d
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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoPruningProcessing2d.PruningModes
-
Nested classes/interfaces inherited from class com.openinventor.imageviz.engines.SoImageVizEngine
SoImageVizEngine.ComputeModes, SoImageVizEngine.EventArg, SoImageVizEngine.Neighborhood3ds
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
Fields Modifier and Type Field 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 .-
Fields inherited from class com.openinventor.imageviz.engines.SoImageVizEngine
onBegin, onEnd, onProgress
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoPruningProcessing2d()
Constructor.
-
Method Summary
-
Methods inherited from class com.openinventor.imageviz.engines.SoImageVizEngine
abortEvaluate, isEvaluating, startEvaluate, waitEvaluate
-
Methods inherited from class com.openinventor.inventor.engines.SoEngine
copy, getByName, getOutput, getOutputName
-
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
-
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable, touch
-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
Field Detail
-
inBinaryImage
public final SoSFImageDataAdapter inBinaryImage
The input image. Supported types include: binary. Default value is NULL. Supported types include: binary image.
-
pruningMode
public final SoSFEnum<SoPruningProcessing2d.PruningModes> pruningMode
End point mode . Default is RIGOROUS
-
maxLength
public final SoSFInt32 maxLength
Enter the number of iterations (0:until convergence) Default value is 1.
-
outBinaryImage
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outBinaryImage
The output binary image. Default value is NULL. Supported types include: binary image.
-
-