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>
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 |
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).
inBinaryImage | NULL |
rotationCenterX | 1024 |
rotationCenterY | 1024 |
rotationAngle | 10.0f |
SoInertiaMomentProcessing2d::SoInertiaMomentProcessing2d | ( | ) |
Constructor.
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.