SoCentroidProcessing2d Class Reference
[Hit-Or-Miss And Skeleton]

ImageViz SoCentroidProcessing2d engine More...

#include <ImageViz/Engines/MathematicalMorphology/HitOrMissAndSkeleton/SoCentroidProcessing2d.h>

Inheritance diagram for SoCentroidProcessing2d:
SoImageVizEngine SoEngine SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Member Functions

 SoCentroidProcessing2d ()

Public Attributes

SoSFImageDataAdapter inBinaryImage
SoImageVizEngineOutput
< SoSFImageDataAdapter,
SoImageDataAdapter * > 
outImage

Detailed Description

ImageViz SoCentroidProcessing2d engine

The SoCentroidProcessing2d engines computes the centroid of object.

For an object without holes, the centroid is a unique point. For an object with holes, the centroid is made of rings surrounding each hole, as in Figure 1. The SoCentroidProcessing2d engine performs successive thinnings with rotations and until convergence, using the D configuration:

\[\begin{array}{ccc} 0 & \times & \times\\ 0 & \bullet & \times\\ 0 & 0 & \times \end{array} ~~~ \mbox{followed by} ~~~~ \begin{array}{ccc} \times & 0 & \times\\ 0 & \bullet & 1\\ \times & 0 & \times \end{array} \]

where $\times$ means "don't care".

Do not confuse the centroid with a classical center of gravity, which may be outside the object as in the case of a boomerang-shaped particle. However, for quasi-convex objects the centroid is very close to the centre of gravity.

SoCentroidProcessing2d_image01.png

Figure 1: Centroid

FILE FORMAT/DEFAULT


Library references: centroid


Constructor & Destructor Documentation

SoCentroidProcessing2d::SoCentroidProcessing2d (  ) 

Constructor.


Member Data Documentation

The input binary image.

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

The output image.

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


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

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/