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

Functions

Point2D oevislib_net.Region.GetAnchoredPoint (Anchor2D inPointAnchor)
 Returns the point of the region described by the provided anchor.
float oevislib_net.Region.GetMoment (RegionMoment inMomentType, bool inCentral=false)
 Computes the requested region moment.
float oevislib_net.Region.GetNormMoment (RegionMoment inMomentType, bool inCentral=false)
 Computes the requested region moment, normalized to the region area.
float oevislib_net.Region.GetOrientation (AngleRange inAngleRange=AngleRange._0_360)
 Computes the region orientation.
Array< Point2Dioevislib_net.Region.GetOuterBoundary (RegionOuterBoundary inRegionOuterBoundary=RegionOuterBoundary.Top)
 Computes one of the region boundaries.
void oevislib_net.Region.GetOuterBoundaries (Array< Point2Di > outTopBoundary, Array< Point2Di > outRightBoundary, Array< Point2Di > outBottomBoundary, Array< Point2Di > outLeftBoundary)
 Computes boundaries of the region, divided by top, bottom, left and right points.
float oevislib_net.Region.GetElongation ()
 Computes the region elongation.
Segment2D oevislib_net.Region.GetMajorEllipticAxis ()
 Computes the major elliptical axis of the region.
Segment2D oevislib_net.Region.GetMinorEllipticAxis ()
 Computes the minor elliptical axis of the region.
Point2D oevislib_net.Region.GetMassCenter ()
 Computes the center of mass of all the points of the region.
int oevislib_net.Region.GetArea ()
 Computes the region's area, i.e.
Region oevislib_net.Region.GetBoundaries (RegionConnectivity inConnectivity)
 Returns a new region without the interior points.
Segment2D oevislib_net.Region.GetDiameter ()
 Computes the longest segment connecting two points of the region.
void oevislib_net.Region.GetCaliperDiameters (Optional< Segment2D > outMinDiameter, Optional< Segment2D > outMaxDiameter)
 Uses the caliper diameter algorithm to compute the longest and the shortest segments connecting two points of the region.
float oevislib_net.Region.GetCircularity (CircularityMeasure inCircularityMeasure, Optional< Circle2D > outCircle)
 Computes the region circularity.
Region oevislib_net.Region.GetConvexHull ()
 Computes the region's convex hull as a Region object.
float oevislib_net.Region.GetConvexity ()
 Computes the region convexity, defined as its area divided by the area of its convex hull.
float oevislib_net.Region.GetPerimeter ()
 Returns the Region Perimeter.
float oevislib_net.Region.GetRectangularity ()
 Computes the region rectangularity, defined as its area divided by the area of it bounding rectangle.
Box oevislib_net.Region.GetBoundingBox ()
 Computes the box with minimum area the contains the entire region.
Array< Regionoevislib_net.Region.GetHoles (RegionConnectivity inConnectivity=RegionConnectivity.EightDirections, int inMinHoleArea=1, Optional< int > inMaxHoleArea=null)
 Convert holes of the region into region themselves.
Region oevislib_net.Region.GetInteriors (RegionConnectivity inConnectivity=RegionConnectivity.EightDirections)
 Returns a new region without the border point.
Circle2D oevislib_net.Region.GetBoundingCircle ()
 Computes the circle with the smallest area that contains the entire region.
Rectangle2D oevislib_net.Region.GetBoundingRect ()
 Returns the rectangle with minimal area that contains the entire region.
Profile oevislib_net.Region.GetProjection (ProjectionDirection inProjectionDirection=ProjectionDirection.Horizontal)
 Computes the number of points either in each row or column of the region.
Path oevislib_net.Region.GetPathConvexHull ()
 Computes the region's convex hull as a Path object.
Array< int > oevislib_net.Region.GetPointsSequenceLengths ()
 Computes the lengths of all the region's point sequences.

Detailed Description

Function Documentation

◆ GetAnchoredPoint()

Point2D oevislib_net.Region.GetAnchoredPoint ( Anchor2D inPointAnchor)
inline

Returns the point of the region described by the provided anchor.

Parameters
inPointAnchorInput anchor.
Returns
The computed point.

◆ GetArea()

int oevislib_net.Region.GetArea ( )
inline

Computes the region's area, i.e.

the number of contained points.

Returns
The computed value.

◆ GetBoundaries()

Region oevislib_net.Region.GetBoundaries ( RegionConnectivity inConnectivity)
inline

Returns a new region without the interior points.

Parameters
inConnectivityType of connectivity used by the algorithm.
Returns
The computed region.

◆ GetBoundingBox()

Box oevislib_net.Region.GetBoundingBox ( )
inline

Computes the box with minimum area the contains the entire region.

Returns
The computed box.

◆ GetBoundingCircle()

Circle2D oevislib_net.Region.GetBoundingCircle ( )
inline

Computes the circle with the smallest area that contains the entire region.

Returns
The computed circle.

◆ GetBoundingRect()

Rectangle2D oevislib_net.Region.GetBoundingRect ( )
inline

Returns the rectangle with minimal area that contains the entire region.

Returns
The computed rectangle.

◆ GetCaliperDiameters()

void oevislib_net.Region.GetCaliperDiameters ( Optional< Segment2D > outMinDiameter,
Optional< Segment2D > outMaxDiameter )
inline

Uses the caliper diameter algorithm to compute the longest and the shortest segments connecting two points of the region.

Parameters
outMinDiameterShortest segment.
outMaxDiameterLongest segment.

◆ GetCircularity()

float oevislib_net.Region.GetCircularity ( CircularityMeasure inCircularityMeasure,
Optional< Circle2D > outCircle )
inline

Computes the region circularity.

The circularity is defined as the region area divided by the area of an equivalent circle having the same selected feature.

Parameters
inCircularityMeasureSelect the type of equivalent circle used to compute the circularity.
outCircleThe equivalent circle used to compute the circularity.
Returns
The computed value.

◆ GetConvexHull()

Region oevislib_net.Region.GetConvexHull ( )
inline

Computes the region's convex hull as a Region object.

Returns
The computed region.

◆ GetConvexity()

float oevislib_net.Region.GetConvexity ( )
inline

Computes the region convexity, defined as its area divided by the area of its convex hull.

Returns
The computed value.

◆ GetDiameter()

Segment2D oevislib_net.Region.GetDiameter ( )
inline

Computes the longest segment connecting two points of the region.

Returns
The computes segment.

◆ GetElongation()

float oevislib_net.Region.GetElongation ( )
inline

Computes the region elongation.

A result equal to 1 means perfect elongation, which is theoretically possible only considering the perfect circle.

Returns
The computed value.

◆ GetHoles()

Array< Region > oevislib_net.Region.GetHoles ( RegionConnectivity inConnectivity = RegionConnectivity::EightDirections,
int inMinHoleArea = 1,
Optional< int > inMaxHoleArea = null )
inline

Convert holes of the region into region themselves.

Parameters
inConnectivityType of connectivity used by the algorithm.
inMinHoleAreaHoles with lower area are discarded. Range: [0, +inf).
inMaxHoleAreaHoles with larger area are discarded. If Null, the parameter is neglected. Range: [0, +inf).
Returns
An array containing all the extracted regions.

◆ GetInteriors()

Region oevislib_net.Region.GetInteriors ( RegionConnectivity inConnectivity = RegionConnectivity::EightDirections)
inline

Returns a new region without the border point.

Parameters
inConnectivityType of connectivity used by the algorithm.
Returns
The computed region.

◆ GetMajorEllipticAxis()

Segment2D oevislib_net.Region.GetMajorEllipticAxis ( )
inline

Computes the major elliptical axis of the region.

The elliptical axis is defined as the axis of an ellipse that has the same first and second order moments of the region.

Returns
The computed segment.

◆ GetMassCenter()

Point2D oevislib_net.Region.GetMassCenter ( )
inline

Computes the center of mass of all the points of the region.

Returns
The computed point.

◆ GetMinorEllipticAxis()

Segment2D oevislib_net.Region.GetMinorEllipticAxis ( )
inline

Computes the minor elliptical axis of the region.

The elliptical axis is defined as the axis of an ellipse that has the same first and second order moments of the region.

Returns
The computed segment.

◆ GetMoment()

float oevislib_net.Region.GetMoment ( RegionMoment inMomentType,
bool inCentral = false )
inline

Computes the requested region moment.

Parameters
inMomentTypeSelect the moment that should be computed.
inCentralIf true, the central moment is computed.
Returns
The computed value.

◆ GetNormMoment()

float oevislib_net.Region.GetNormMoment ( RegionMoment inMomentType,
bool inCentral = false )
inline

Computes the requested region moment, normalized to the region area.

Parameters
inMomentTypeSelect the moment that should be computed.
inCentralIf true, the central moment is computed.
Returns
The computed value.

◆ GetOrientation()

float oevislib_net.Region.GetOrientation ( AngleRange inAngleRange = AngleRange::_0_360)
inline

Computes the region orientation.

Parameters
inAngleRangeRange of the output angle.
Returns
The computed angle.

◆ GetOuterBoundaries()

void oevislib_net.Region.GetOuterBoundaries ( Array< Point2Di > outTopBoundary,
Array< Point2Di > outRightBoundary,
Array< Point2Di > outBottomBoundary,
Array< Point2Di > outLeftBoundary )
inline

Computes boundaries of the region, divided by top, bottom, left and right points.

Parameters
outTopBoundaryArray of points that are not connected to points with lower y coordinate.
outRightBoundaryArray of points that are not connected to points with higher x coordinate.
outBottomBoundaryArray of points that are not connected to points with higher y coordinate.
outLeftBoundaryArray of points that are not connected to points with lower x coordinate.

◆ GetOuterBoundary()

Array< Point2Di > oevislib_net.Region.GetOuterBoundary ( RegionOuterBoundary inRegionOuterBoundary = RegionOuterBoundary::Top)
inline

Computes one of the region boundaries.

Parameters
inRegionOuterBoundarySelect the type of boundary that will be computed.
Returns
The computed boundary.

◆ GetPathConvexHull()

Path oevislib_net.Region.GetPathConvexHull ( )
inline

Computes the region's convex hull as a Path object.

Returns
The computed path.

◆ GetPerimeter()

float oevislib_net.Region.GetPerimeter ( )
inline

Returns the Region Perimeter.

Returns
the region perimeter

◆ GetPointsSequenceLengths()

Array< int > oevislib_net.Region.GetPointsSequenceLengths ( )
inline

Computes the lengths of all the region's point sequences.

Returns
An array containing all the computed lengths.

◆ GetProjection()

Profile oevislib_net.Region.GetProjection ( ProjectionDirection inProjectionDirection = ProjectionDirection::Horizontal)
inline

Computes the number of points either in each row or column of the region.

Parameters
inProjectionDirectionDirection used to count the number of points. 'Horizontal' will provide the count by rows.
Returns
A profile containing all requested counts.

◆ GetRectangularity()

float oevislib_net.Region.GetRectangularity ( )
inline

Computes the region rectangularity, defined as its area divided by the area of it bounding rectangle.

Returns
The computed value.