oevislib_net  0.14.3.0
Loading...
Searching...
No Matches
Polygon Features

Functions

void oevislib_net.Path.NormalizeOrientation ()
 Normalize the polygon orientation based on the axis.
float oevislib_net.Path.GetMoment (PolygonMoment inMomentType, bool inCentral)
 Computer the polygon second-order moment.
float oevislib_net.Path.GetNormMoment (PolygonMoment inMomentType, bool inCentral)
 Computer the polygon second-order normalized moment.
float oevislib_net.Path.GetArea ()
 Computes the polygon area.
Point2D oevislib_net.Path.GetPolygonMassCenter ()
 Computes the polygon mass center.
float oevislib_net.Path.GetOrientation ()
 Computes the polygon orientation as an angle.
float oevislib_net.Path.GetElongation ()
 Computes the polygon elongation.
Segment2D oevislib_net.Path.GetMinorEllipticAxis ()
 Computes the path minor elliptical axis.
Segment2D oevislib_net.Path.GetMajorEllipticAxis ()
 Computes the path major elliptical axis.
float oevislib_net.Path.GetCircularity (CircularityMeasure inCircularityMeasure)
 Computes the path circularity, defined as the polygon area divided by the area of the circle having the same provided feature.
float oevislib_net.Path.GetConvexity ()
 Computes the path convexity, defined as the polygon area normalized to the area of the convex hull.
float oevislib_net.Path.GetRectangularity ()
 Computes the path rectangularity, defined as the polygon area divided by the area of its bounding rectangle.
Circle2D oevislib_net.Path.GetInscribedCircle ()
 Computes the path's inscribed circle with the maximal area.

Detailed Description

Function Documentation

◆ GetArea()

float oevislib_net.Path.GetArea ( )
inline

Computes the polygon area.

It returns a correct result only if the path is actually a polygon (close and without self-intersections).

Returns
The computed value.

◆ GetCircularity()

float oevislib_net.Path.GetCircularity ( CircularityMeasure inCircularityMeasure)
inline

Computes the path circularity, defined as the polygon area divided by the area of the circle having the same provided feature.

It returns a correct result only if the path is actually a polygon (close and without self-intersections).

Parameters
inCircularityMeasureEquivalent circle feature.
Returns
The computed value.

◆ GetConvexity()

float oevislib_net.Path.GetConvexity ( )
inline

Computes the path convexity, defined as the polygon area normalized to the area of the convex hull.

It returns a correct result only if the path is actually a polygon (close and without self-intersections).

Returns
The computed value.

◆ GetElongation()

float oevislib_net.Path.GetElongation ( )
inline

Computes the polygon elongation.

The perfect circle has the minimal elongation of 1. It returns a correct result only if the path is actually a polygon (close and without self-intersections).

Returns
The computed value.

◆ GetInscribedCircle()

Circle2D oevislib_net.Path.GetInscribedCircle ( )
inline

Computes the path's inscribed circle with the maximal area.

It returns a correct result only if the path is actually a polygon (close and without self-intersections).

Returns
The computed circle.

◆ GetMajorEllipticAxis()

Segment2D oevislib_net.Path.GetMajorEllipticAxis ( )
inline

Computes the path major elliptical axis.

It returns a correct result only if the path is actually a polygon (close and without self-intersections).

Returns
The computed segment.

◆ GetMinorEllipticAxis()

Segment2D oevislib_net.Path.GetMinorEllipticAxis ( )
inline

Computes the path minor elliptical axis.

It returns a correct result only if the path is actually a polygon (close and without self-intersections).

Returns
The computed segment.

◆ GetMoment()

float oevislib_net.Path.GetMoment ( PolygonMoment inMomentType,
bool inCentral )
inline

Computer the polygon second-order moment.

It returns a correct result only if the path is actually a polygon (close and without self-intersections).

Parameters
inMomentTypeMoment type.
inCentralIf true, computes the central moment.
Returns
The value of the requested moment.

◆ GetNormMoment()

float oevislib_net.Path.GetNormMoment ( PolygonMoment inMomentType,
bool inCentral )
inline

Computer the polygon second-order normalized moment.

It returns a correct result only if the path is actually a polygon (close and without self-intersections).

Parameters
inMomentTypeMoment type.
inCentralIf true, returns the central moment.
Returns
The value of the requested moment normalized using the polygon area.

◆ GetOrientation()

float oevislib_net.Path.GetOrientation ( )
inline

Computes the polygon orientation as an angle.

It returns a correct result only if the path is actually a polygon (close and without self-intersections).

Returns
The computed angle in the range [0, 180].

◆ GetPolygonMassCenter()

Point2D oevislib_net.Path.GetPolygonMassCenter ( )
inline

Computes the polygon mass center.

It returns a correct result only if the path is actually a polygon (close and without self-intersections).

Returns
The computed point.

◆ GetRectangularity()

float oevislib_net.Path.GetRectangularity ( )
inline

Computes the path rectangularity, defined as the polygon area divided by the area of its bounding rectangle.

It returns a correct result only if the path is actually a polygon (close and without self-intersections).

Returns
The computed value.

◆ NormalizeOrientation()

void oevislib_net.Path.NormalizeOrientation ( )
inline

Normalize the polygon orientation based on the axis.

The normalization is correct only if the path is actually a polygon (close and without self-intersections).