Class SoObjectToSegmentApproximation2d
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.misc.SoBase
-
- com.openinventor.inventor.fields.SoFieldContainer
-
- com.openinventor.inventor.engines.SoEngine
-
- com.openinventor.imageviz.engines.SoImageVizEngine
-
- com.openinventor.imageviz.engines.imagesegmentation.computationalgeometry.SoObjectToSegmentApproximation2d
-
- All Implemented Interfaces:
SafeDisposable
public class SoObjectToSegmentApproximation2d extends SoImageVizEngine
SoObjectToSegmentApproximation2d
engine. TheSoObjectToSegmentApproximation2d
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.imageviz.engines.SoImageVizEngine
SoImageVizEngine.ComputeModes, SoImageVizEngine.EventArg, SoImageVizEngine.Neighborhood3ds
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
Fields Modifier and Type Field Description SoSFImageDataAdapter
inObjectImage
The input binary or label image.SoSFFloat
maxDistance
The maximum distance in pixels between curve and segment.SoSFInt32
maxPointNumber
The maximum number of processed pixels.SoSFInt32
minArea
The minimum surface of kept cells.SoImageVizEngineOutput<SoSFSegmentChain,SoSegmentChain>
outSegment
The output segment.-
Fields inherited from class com.openinventor.imageviz.engines.SoImageVizEngine
onBegin, onEnd, onProgress
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoObjectToSegmentApproximation2d()
Constructor.
-
Method Summary
-
Methods inherited from class com.openinventor.imageviz.engines.SoImageVizEngine
abortEvaluate, isEvaluating, startEvaluate, waitEvaluate
-
Methods inherited from class com.openinventor.inventor.engines.SoEngine
copy, getByName, getOutput, getOutputName
-
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
-
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable, touch
-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
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.
-
outSegment
public final SoImageVizEngineOutput<SoSFSegmentChain,SoSegmentChain> outSegment
The output segment. Default value is NULL.
-
-