public class SoInertiaMomentProcessing2d extends SoImageVizEngine
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:
The rotation axis is defined by a point (rotationCenterX and rotationCenterY) and an orientation (rotationAngle).
File format/default:
InertiaMomentProcessing2d {
| inBinaryImage | NULL |
| rotationCenterX | 1024 |
| rotationCenterY | 1024 |
| rotationAngle | 10.0f |
Library references: inertia_moment
| Modifier and Type | Class and Description |
|---|---|
static class |
SoInertiaMomentProcessing2d.SbMeanInertiaMomentDetail
Results details of mean inertia moment global measure.
|
SoImageVizEngine.ComputeModes, SoImageVizEngine.EventArg, SoImageVizEngine.Neighborhood3dsInventor.ConstructorCommand| Modifier and Type | Field and Description |
|---|---|
SoSFImageDataAdapter |
inBinaryImage
The input binary image.
|
SoImageVizEngineAnalysisOutput<SoInertiaMomentProcessing2d.SbMeanInertiaMomentDetail> |
outResult
The output measure result.
|
SoSFFloat |
rotationAngle
The orientation of the rotation axis in
degrees (not radians).
|
SoSFInt32 |
rotationCenterX
The X coordinate of the rotation axis.
|
SoSFInt32 |
rotationCenterY
The Y coordinate of the rotation axis.
|
CONNECTIVITY_18, CONNECTIVITY_26, CONNECTIVITY_6, MODE_2D, MODE_3D, MODE_AUTO, onBegin, onEnd, onProgressVERBOSE_LEVEL, ZeroHandle| Constructor and Description |
|---|
SoInertiaMomentProcessing2d()
Constructor.
|
abortEvaluate, isEvaluating, startEvaluate, waitEvaluatecopy, getByName, getOutput, getOutputNamecopyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaultsdispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable, touchgetAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreadspublic final SoSFImageDataAdapter inBinaryImage
public final SoSFInt32 rotationCenterX
public final SoSFInt32 rotationCenterY
public final SoSFFloat rotationAngle
public final SoImageVizEngineAnalysisOutput<SoInertiaMomentProcessing2d.SbMeanInertiaMomentDetail> outResult
Generated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com