eVision C++ API 26.10.0-beta.2.dev
Loading...
Searching...
No Matches
eVision::EasyObject Class Reference

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

#include <eVision/EasyObject/EasyObject2/EasyObject.h>

Collaboration diagram for eVision::EasyObject:

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, int32_t &n32Area)
 Computes the area of an object from its contour.
static int32_t ContourArea (eVision::EPathVector *pPathVector)
 Computes the area of an object from its contour.
static void ContourGravityCenter (eVision::EPathVector *pPathVector, int32_t &n32Area, float &f32GravityCenterX, float &f32GravityCenterY)
 Computes the area and gravity center of an object from its contour.
static void ContourInertia (eVision::EPathVector *pPathVector, int32_t &n32Area, float &f32GravityCenterX, float &f32GravityCenterY, float &f32SigmaX, float &f32SigmaY, 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.

Public Attributes

CppWrapperInternal::WrappedClass wrappedClass_

Detailed Description

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

License(s): EasyObject

Member Function Documentation

◆ ContourArea() [1/2]

int32_t 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,
int32_t & 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,
int32_t & n32Area,
float & f32GravityCenterX,
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,
int32_t & n32Area,
float & f32GravityCenterX,
float & f32GravityCenterY,
float & f32SigmaX,
float & f32SigmaY,
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.

Member Data Documentation

◆ wrappedClass_

CppWrapperInternal::WrappedClass eVision::EasyObject::wrappedClass_