Class SoObjectToSegmentApproximation2d

  • All Implemented Interfaces:

    public class SoObjectToSegmentApproximation2d
    extends SoImageVizEngine
    SoObjectToSegmentApproximation2d engine. The SoObjectToSegmentApproximation2d engine computes the polygonal approximation of object boundaries.

    For an introduction, see section Discrete Geometry.

    The SoObjectToSegmentApproximation2d engine first extracts chains from objects edges. Then it applies the dichotomous polygonal approximation. This operation consists in converting chains into segments by approximating the polygons of linear segments. It provides the outlines of the polygons.

    File format/default:

    ObjectToSegmentApproximation2d {

      inObjectImage NULL
      minArea 5
      maxPointNumber 256000
      maxDistance 1.5f

    Library references: seg_approx

    • Field Detail

      • inObjectImage

        public final SoSFImageDataAdapter inObjectImage
        The input binary or label image. Default value is NULL. Supported types include: binary label color image.
      • minArea

        public final SoSFInt32 minArea
        The minimum surface of kept cells. Default value is 5.
      • maxPointNumber

        public final SoSFInt32 maxPointNumber
        The maximum number of processed pixels. Default value is 256000.
      • maxDistance

        public final SoSFFloat maxDistance
        The maximum distance in pixels between curve and segment. Default value is 1.5f.
    • Constructor Detail

      • SoObjectToSegmentApproximation2d

        public SoObjectToSegmentApproximation2d()