SoPruneProcessing2d engine More...
#include <ImageViz/Engines/MathematicalMorphology/HitOrMissAndSkeleton/SoPruneProcessing2d.h>
Public Member Functions | |
SoPruneProcessing2d () | |
Public Attributes | |
SoSFImageDataAdapter | inImage |
SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outImage |
The SoPruneProcessing2d 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 artifacts called prunes. The SoPruneProcessing2d engine eliminates these prunes by thinning with the E configuration until convergence. The 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.
Pruning
See also: SoSkeletonProcessing, SoPruneProcessing3d, SoTriplePointsProcessing2d, SoEndPointsProcessing2d.
inImage | NULL |
SoPruneProcessing2d::SoPruneProcessing2d | ( | ) |
Constructor.
The input image.
Default value is NULL. Supported types include: grayscale binary label color image.
The output image.
Default value is NULL. Supported types include: grayscale binary label color image.