EasyObject::ContourGravityCenter

Computes the area and gravity center of an object from its contour.

Namespace: Euresys::Open_eVision

[C++]

void ContourGravityCenter(
   EPathVector* pPathVector,
   int& n32Area,
   float& f32GravityCenterX,
   float& f32GravityCenterY
)

Parameters

pPathVector

Pointer to the source vector.

n32Area

Reference to the area to compute.

f32GravityCenterX

Reference to the abscissa of the gravity center to compute.

f32GravityCenterY

Reference to the ordinate of the gravity center to compute.

EasyObject.ContourGravityCenter

Computes the area and gravity center of an object from its contour.

Namespace: Euresys.Open_eVision

[C#]

void ContourGravityCenter(
   Euresys.Open_eVision.EPathVector pPathVector,
   ref int n32Area,
   ref float f32GravityCenterX,
   ref float f32GravityCenterY
)

Parameters

pPathVector

Pointer to the source vector.

n32Area

Reference to the area to compute.

f32GravityCenterX

Reference to the abscissa of the gravity center to compute.

f32GravityCenterY

Reference to the ordinate of the gravity center to compute.