Class SoPruningProcessing2d

  • All Implemented Interfaces:

    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

    • Constructor Detail

      • SoPruningProcessing2d

        public SoPruningProcessing2d()