SoObjectToSegmentApproximation2d engine More...
#include <ImageViz/Engines/ImageSegmentation/ComputationalGeometry/SoObjectToSegmentApproximation2d.h>
Public Member Functions | |
SoObjectToSegmentApproximation2d () | |
Public Attributes | |
SoSFImageDataAdapter | inObjectImage |
SoSFInt32 | minArea |
SoSFInt32 | maxPointNumber |
SoSFFloat | maxDistance |
SoImageVizEngineOutput < SoSFSegmentChain, SoSegmentChain * > | outSegment |
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.
inObjectImage | NULL |
minArea | 5 |
maxPointNumber | 256000 |
maxDistance | 1.5f |
SoObjectToSegmentApproximation2d::SoObjectToSegmentApproximation2d | ( | ) |
Constructor.
The input binary or label image.
Default value is NULL. Supported types include: binary label color image.
The maximum distance in pixels between curve and segment.
Default value is 1.5f.
The maximum number of processed pixels.
Default value is 256000.
The minimum surface of kept cells.
Default value is 5.
SoImageVizEngineOutput<SoSFSegmentChain,SoSegmentChain*> SoObjectToSegmentApproximation2d::outSegment |
The output segment.
Default value is NULL.