Class SoInertiaMomentProcessing2d
- 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.imageanalysis.morphometry.SoInertiaMomentProcessing2d
-
- All Implemented Interfaces:
SafeDisposable
@Deprecated(since="2023.2") public class SoInertiaMomentProcessing2d extends SoImageVizEngine
Deprecated.As of Open Inventor 2023.2. ImageViz API is replaced by the new ImageDev toolkit.SoInertiaMomentProcessing2d
measures the resistance of an object to changes in its motion around a given axis of rotation. This class computes a measure of an object's resistance to changes in its rotational motion. The moment of inertia of an object on a given axis describes how difficult it is to change its angular motion around that axis.For a point mass m the moment of inertia I is simply m times the square perpendicular distance r from the axis of rotation:
On a digital image a pixel intensity can be considered as a mass. Then for an object of a binary image, m is a constant equal to 1. Thus, the moment of inertia is the sum of the square perpendicular distances from the axis:
Where:
- x is an object pixel
- p(x) is the orthogonal projection of x onto the axis of rotation.
The rotation axis is defined by a point (
rotationCenterX
androtationCenterY
) and an orientation (rotationAngle
).File format/default:
InertiaMomentProcessing2d {
inBinaryImage NULL rotationCenterX 1024 rotationCenterY 1024 rotationAngle 10.0f
Library references: inertia_moment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoInertiaMomentProcessing2d.SbMeanInertiaMomentDetail
Deprecated.As of Open Inventor 2023.2.-
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.SoImageVizEngineAnalysisOutput<SoInertiaMomentProcessing2d.SbMeanInertiaMomentDetail>
outResult
Deprecated.The output measure result.SoSFFloat
rotationAngle
Deprecated.The orientation of the rotation axis in degrees (not radians).SoSFInt32
rotationCenterX
Deprecated.The X coordinate of the rotation axis.SoSFInt32
rotationCenterY
Deprecated.The Y coordinate of the rotation axis.-
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 SoInertiaMomentProcessing2d()
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.
-
rotationCenterX
public final SoSFInt32 rotationCenterX
Deprecated.The X coordinate of the rotation axis. Default value is 1024.
-
rotationCenterY
public final SoSFInt32 rotationCenterY
Deprecated.The Y coordinate of the rotation axis. Default value is 1024.
-
rotationAngle
public final SoSFFloat rotationAngle
Deprecated.The orientation of the rotation axis in degrees (not radians). A positive value means that the angle is taken from the positive X axis to the postive Y axis. Default value is 10.0f.
-
outResult
public final SoImageVizEngineAnalysisOutput<SoInertiaMomentProcessing2d.SbMeanInertiaMomentDetail> outResult
Deprecated.The output measure result. Default value is NULL.
-
-