eVision .NET API
Loading...
Searching...
No Matches
eVision.EasyObject Class Reference

This class contains static properties and methods specific to the EasyObject library. More...

Static Public Member Functions

static bool IsUnsignedIntegerFeature (eVision.EFeature feature)
 Tests whether a given feature is associated with unsigned integer values.
static bool IsIntegerFeature (eVision.EFeature feature)
 Tests whether a given feature is associated with integer values.
static bool IsFloatFeature (eVision.EFeature feature)
 Tests whether a given feature is associated with floating-point values.
static void ContourArea (eVision.EPathVector pPathVector, ref int n32Area)
 Computes the area of an object from its contour.
static int ContourArea (eVision.EPathVector pPathVector)
 Computes the area of an object from its contour.
static void ContourGravityCenter (eVision.EPathVector pPathVector, ref int n32Area, ref float f32GravityCenterX, ref float f32GravityCenterY)
 Computes the area and gravity center of an object from its contour.
static void ContourInertia (eVision.EPathVector pPathVector, ref int n32Area, ref float f32GravityCenterX, ref float f32GravityCenterY, ref float f32SigmaX, ref float f32SigmaY, ref float f32SigmaXY)
 Computes the inertia parameters of an object from its contour.
static eVision.EObjectBasicStatistics ContourStatistics (eVision.EPathVector pPathVector)
 Computes the basic statistics of an object from its contour.

Detailed Description

This class contains static properties and methods specific to the EasyObject library.

License(s): EasyObject

Member Function Documentation

◆ ContourArea() [1/2]

int eVision.EasyObject.ContourArea ( eVision.EPathVector pPathVector)
static

Computes the area of an object from its contour.

Parameters
pPathVectorPointer to the source vector.

◆ ContourArea() [2/2]

void eVision.EasyObject.ContourArea ( eVision.EPathVector pPathVector,
ref int n32Area )
static

Computes the area of an object from its contour.

Parameters
pPathVectorPointer to the source vector.
n32AreaReference to the area to compute.
Deprecated
Deprecated in version 24.2. Scheduled to be removed in version 27.6.

◆ ContourGravityCenter()

void eVision.EasyObject.ContourGravityCenter ( eVision.EPathVector pPathVector,
ref int n32Area,
ref float f32GravityCenterX,
ref float f32GravityCenterY )
static

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

Parameters
pPathVectorPointer to the source vector.
n32AreaReference to the area to compute.
f32GravityCenterXReference to the abscissa of the gravity center to compute.
f32GravityCenterYReference to the ordinate of the gravity center to compute.
Deprecated

Use EasyObject.ContourStatistics instead.

Deprecated in version 24.6. Scheduled to be removed in version 27.6.

◆ ContourInertia()

void eVision.EasyObject.ContourInertia ( eVision.EPathVector pPathVector,
ref int n32Area,
ref float f32GravityCenterX,
ref float f32GravityCenterY,
ref float f32SigmaX,
ref float f32SigmaY,
ref float f32SigmaXY )
static

Computes the inertia parameters of an object from its contour.

Parameters
pPathVectorPointer to the source vector.
n32AreaReference to the area to compute.
f32GravityCenterXReference to the abscissa of the gravity center to compute.
f32GravityCenterYReference to the ordinate of the gravity center to compute.
f32SigmaXCentered moment of inertia around X.
f32SigmaYCentered moment of inertia around Y.
f32SigmaXYCentered cross moment of inertia.
Deprecated

Use EasyObject.ContourStatistics instead.

Deprecated in version 24.6. Scheduled to be removed in version 27.6.

◆ ContourStatistics()

eVision.EObjectBasicStatistics eVision.EasyObject.ContourStatistics ( eVision.EPathVector pPathVector)
static

Computes the basic statistics of an object from its contour.

Parameters
pPathVectorPointer to the source vector.

◆ IsFloatFeature()

bool eVision.EasyObject.IsFloatFeature ( eVision.EFeature feature)
static

Tests whether a given feature is associated with floating-point values.

Parameters
featureThe feature.

Most features are floating-point. The exceptions are listed in these functions: EasyObject.IsUnsignedIntegerFeature and EasyObject.IsIntegerFeature.

◆ IsIntegerFeature()

bool eVision.EasyObject.IsIntegerFeature ( eVision.EFeature feature)
static

Tests whether a given feature is associated with integer values.

Parameters
featureThe feature.

The features associated with integer values are: EFeature.EFeature_ContourX, EFeature.EFeature_ContourY, EFeature.EFeature_LeftLimit, EFeature.EFeature_RightLimit, EFeature.EFeature_TopLimit, and EFeature.EFeature_BottomLimit.

◆ IsUnsignedIntegerFeature()

bool eVision.EasyObject.IsUnsignedIntegerFeature ( eVision.EFeature feature)
static

Tests whether a given feature is associated with unsigned integer values.

Parameters
featureThe feature.

The features associated with unsigned integer values are: EFeature.EFeature_ElementIndex, EFeature.EFeature_LayerIndex, EFeature.EFeature_RunCount, EFeature.EFeature_Area and EFeature.EFeature_LargestRun.