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.
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, 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.