EasyObject::ContourInertia

Computes the inertia parameters of an object from its contour.

Namespace: Euresys::Open_eVision

[C++]

void ContourInertia(
   EPathVector* pPathVector,
   int& n32Area,
   float& f32GravityCenterX,
   float& f32GravityCenterY,
   float& f32SigmaX,
   float& f32SigmaY,
   float& f32SigmaXY
)

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.

f32SigmaX

Centered cross moment of inertia.

f32SigmaY

Centered moment of inertia around Y.

f32SigmaXY

Centered cross moment of inertia.

EasyObject.ContourInertia

Computes the inertia parameters of an object from its contour.

Namespace: Euresys.Open_eVision

[C#]

void ContourInertia(
   Euresys.Open_eVision.EPathVector pPathVector,
   ref int n32Area,
   ref float f32GravityCenterX,
   ref float f32GravityCenterY,
   ref float f32SigmaX,
   ref float f32SigmaY,
   ref float f32SigmaXY
)

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.

f32SigmaX

Centered cross moment of inertia.

f32SigmaY

Centered moment of inertia around Y.

f32SigmaXY

Centered cross moment of inertia.