Class SoCentroidProcessing2d

  • All Implemented Interfaces:

    public class SoCentroidProcessing2d
    extends SoImageVizEngine
    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: where 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.

    Figure 1: Centroid

    File format/default:

    CentroidProcessing2d {

      inBinaryImage NULL

    Library references: centroid

    • Constructor Detail

      • SoCentroidProcessing2d

        public SoCentroidProcessing2d()