Class SoCentroidProcessing2d
- 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.mathematicalmorphology.hitormissandskeleton.SoCentroidProcessing2d
-
- All Implemented Interfaces:
SafeDisposable
@Deprecated(since="2023.2") public class SoCentroidProcessing2d extends SoImageVizEngine
Deprecated.As of Open Inventor 2023.2. ImageViz API is replaced by the new ImageDev toolkit.SoCentroidProcessing2d
engine. TheSoCentroidProcessing2d
engines computes the centroid of object.For an object without holes, the centroid is a unique point. For an object with holes, the centroid is made of rings surrounding each hole, as in Figure 1. The
SoCentroidProcessing2d
engine performs successive thinnings with rotations and until convergence, using the D configuration:where
means "don't care".
Do not confuse the centroid with a classical center of gravity, which may be outside the object as in the case of a boomerang-shaped particle. However, for quasi-convex objects the centroid is very close to the centre of gravity.
File format/default:
CentroidProcessing2d {
inBinaryImage NULL
Library references: centroid
-
-
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
inBinaryImage
Deprecated.The input binary image.SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter>
outImage
Deprecated.The output image.-
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 SoCentroidProcessing2d()
Deprecated.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
-
inBinaryImage
public final SoSFImageDataAdapter inBinaryImage
Deprecated.The input binary image. Default value is NULL. Supported types include: binary color image.
-
outImage
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outImage
Deprecated.The output image. Default value is NULL. Supported types include: grayscale binary label color image.
-
-