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
SoImageVizEngine.ComputeModes, SoImageVizEngine.EventArg, SoImageVizEngine.Neighborhood3ds
Inventor.ConstructorCommand
Modifier and Type | Field and 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.
|
CONNECTIVITY_18, CONNECTIVITY_26, CONNECTIVITY_6, MODE_2D, MODE_3D, MODE_AUTO, onBegin, onEnd, onProgress
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoObjectToSegmentApproximation2d()
Constructor.
|
abortEvaluate, isEvaluating, startEvaluate, waitEvaluate
copy, getByName, getOutput, getOutputName
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable, touch
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public final SoSFImageDataAdapter inObjectImage
public final SoSFInt32 minArea
public final SoSFInt32 maxPointNumber
public final SoSFFloat maxDistance
public final SoImageVizEngineOutput<SoSFSegmentChain,SoSegmentChain> outSegment
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com