Class 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 and rotationCenterY) and an orientation (rotationAngle).

    File format/default:

    InertiaMomentProcessing2d {

      inBinaryImage NULL
      rotationCenterX 1024
      rotationCenterY 1024
      rotationAngle 10.0f
    }


    Library references: inertia_moment

    • 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.
    • Constructor Detail

      • SoInertiaMomentProcessing2d

        public SoInertiaMomentProcessing2d()
        Deprecated.
        Constructor.