SoInertiaMomentProcessing2d Class Reference
[Morphometry]

ImageViz SoInertiaMomentProcessing2d measures the resistance of an object to changes in its motion around a given axis of rotation. More...

#include <ImageViz/Engines/ImageAnalysis/Morphometry/SoInertiaMomentProcessing2d.h>

Inheritance diagram for SoInertiaMomentProcessing2d:
SoImageVizEngine SoEngine SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Classes

class  SbMeanInertiaMomentDetail
 Results details of mean inertia moment global measure. More...

Public Member Functions

 SoInertiaMomentProcessing2d ()

Public Attributes

SoSFImageDataAdapter inBinaryImage
SoSFInt32 rotationCenterX
SoSFInt32 rotationCenterY
SoSFFloat rotationAngle
SoImageVizEngineAnalysisOutput
< SbMeanInertiaMomentDetail
outResult

Detailed Description

ImageViz 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:

\[I = mr^2\]

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:

\[I = \sum_r r^2 = \sum_x(x-p(x))^2\]

Where:

The rotation axis is defined by a point (rotationCenterX and rotationCenterY) and an orientation (rotationAngle).

FILE FORMAT/DEFAULT


Library references: inertia_moment


Constructor & Destructor Documentation

SoInertiaMomentProcessing2d::SoInertiaMomentProcessing2d (  ) 

Constructor.


Member Data Documentation

The input binary image.

Default value is NULL. Supported types include: binary color image.

The output measure result.

Default value is NULL.

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.

The X coordinate of the rotation axis.

Default value is 1024.

The Y coordinate of the rotation axis.

Default value is 1024.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/