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

Functions

static Conditional< Arc2Doevislib_net.Geometry.Fitting.FitArc (Array< Point2D > inPoints, Optional< Range > inRange=null, CircleFittingMethod inFittingMethod=CircleFittingMethod.AlgebraicPratt, Optional< float > inMaxError=null, Optional< MEstimator > inOutlierSuppression=null, Optional< Array< Point2D > > outInliers=null, Optional< float > outError=null)
 Fits an array of points to an arc object, if possible.
static Conditional< Arc2Doevislib_net.Geometry.Fitting.FitArc (Path inPath, CircleFittingMethod inFittingMethod=CircleFittingMethod.AlgebraicPratt, Optional< float > inMaxError=null, Optional< MEstimator > inOutlierSuppression=null, Optional< float > outError=null)
 Fits a path to an arc object, if possible.
static Conditional< Circle2Doevislib_net.Geometry.Fitting.FitCircle (Array< Point2D > inPoints, Optional< Range > inRange=null, CircleFittingMethod inFittingMethod=CircleFittingMethod.AlgebraicPratt, Optional< float > inMaxError=null, Optional< MEstimator > inOutlierSuppression=null, Optional< Array< Point2D > > outInliers=null, Optional< float > outError=null)
 Fits an array of points to a circle object, if possible.
static Conditional< Line2Doevislib_net.Geometry.Fitting.FitLine (Array< Point2D > inPoints, Optional< Range > inRange=null, Optional< float > inMaxError=null, Optional< MEstimator > inOutlierSuppression=null, Optional< Array< Point2D > > outInliers=null, Optional< float > outError=null)
 Fits an array of points to a line object, if possible.
static Conditional< Segment2Doevislib_net.Geometry.Fitting.FitSegment (Array< Point2D > inPoints, Optional< Range > inRange, Optional< float > inMaxError, Optional< MEstimator > inOutlierSuppression, Optional< Array< Point2D > > outInliers, Optional< float > outError)
 Fits an array of points to a segment object, if possible.

Detailed Description

Function Documentation

◆ FitArc() [1/2]

Conditional< Arc2D > oevislib_net.Geometry.Fitting.FitArc ( Array< Point2D > inPoints,
Optional< Range > inRange = null,
CircleFittingMethod inFittingMethod = CircleFittingMethod::AlgebraicPratt,
Optional< float > inMaxError = null,
Optional< MEstimator > inOutlierSuppression = null,
Optional< Array< Point2D > > outInliers = null,
Optional< float > outError = null )
inlinestatic

Fits an array of points to an arc object, if possible.

Parameters
inPointsInput points.
inRangeRange of elements in the array that must be considered for the fit. If Null, all points are considered.
inFittingMethodCircle fitting technique used by the algorithm.
inMaxErrorMaximum allowed fit error. If the calculated error is higher, the function will return Null.
inOutlierSuppressionOutlier suppression technique used by the algorithm. If Null, no outlier suppression is used.
outInliersPoints that the algorithm used to compute the circle object. Useful only when an outlier suppression technique is provided.
outErrorRoot-Mean-Square Error (RMSE) of the fit.
Returns
A conditional object containing the fitted arc. If, for any reason, the fit cannot be performed, the conditional will be Null.

◆ FitArc() [2/2]

Conditional< Arc2D > oevislib_net.Geometry.Fitting.FitArc ( Path inPath,
CircleFittingMethod inFittingMethod = CircleFittingMethod::AlgebraicPratt,
Optional< float > inMaxError = null,
Optional< MEstimator > inOutlierSuppression = null,
Optional< float > outError = null )
inlinestatic

Fits a path to an arc object, if possible.

When a path is provided (instead of a simple array of points), the point's order is taken into account to compute the arc's angles.

Parameters
inPathInput path.
inFittingMethodCircle fitting technique used by the algorithm.
inMaxErrorMaximum allowed fit error. If the calculated error is higher, the function will return Null.
inOutlierSuppressionOutlier suppression technique used by the algorithm. If Null, no outlier suppression is used.
outErrorRoot-Mean-Square Error (RMSE) of the fit.
Returns
A conditional object containing the fitted arc. If, for any reason, the fit cannot be performed, the conditional will be Null.

◆ FitCircle()

Conditional< Circle2D > oevislib_net.Geometry.Fitting.FitCircle ( Array< Point2D > inPoints,
Optional< Range > inRange = null,
CircleFittingMethod inFittingMethod = CircleFittingMethod::AlgebraicPratt,
Optional< float > inMaxError = null,
Optional< MEstimator > inOutlierSuppression = null,
Optional< Array< Point2D > > outInliers = null,
Optional< float > outError = null )
inlinestatic

Fits an array of points to a circle object, if possible.

Parameters
inPointsInput points.
inRangeRange of elements in the array that must be considered for the fit. If Null, all points are considered.
inFittingMethodCircle fitting technique used by the algorithm.
inMaxErrorMaximum allowed fit error. If the calculated error is higher, the function will return Null.
inOutlierSuppressionOutlier suppression technique used by the algorithm. If Null, no outlier suppression is used.
outInliersPoints that the algorithm used to compute the circle object. Useful only when an outlier suppression technique is provided.
outErrorRoot-Mean-Square Error (RMSE) of the fit.
Returns
A conditional object containing the fitted circle. If, for any reason, the fit cannot be performed, the conditional will be Null.

◆ FitLine()

Conditional< Line2D > oevislib_net.Geometry.Fitting.FitLine ( Array< Point2D > inPoints,
Optional< Range > inRange = null,
Optional< float > inMaxError = null,
Optional< MEstimator > inOutlierSuppression = null,
Optional< Array< Point2D > > outInliers = null,
Optional< float > outError = null )
inlinestatic

Fits an array of points to a line object, if possible.

Parameters
inPointsInput points.
inRangeRange of elements in the array that must be considered for the fit. If Null, all points are considered.
inMaxErrorMaximum allowed fit error. If the calculated error is higher, the function will return Null.
inOutlierSuppressionOutlier suppression technique used by the algorithm. If Null, no outlier suppression is used.
outInliersPoints that the algorithm used to compute the line object. Useful only when an outlier suppression technique is provided.
outErrorSum of the distances between each inlier and its theoretical closest point.
Returns
A conditional object containing the fitted line. If, for any reason, the fit cannot be performed, the conditional will be Null.

◆ FitSegment()

Conditional< Segment2D > oevislib_net.Geometry.Fitting.FitSegment ( Array< Point2D > inPoints,
Optional< Range > inRange,
Optional< float > inMaxError,
Optional< MEstimator > inOutlierSuppression,
Optional< Array< Point2D > > outInliers,
Optional< float > outError )
inlinestatic

Fits an array of points to a segment object, if possible.

Parameters
inPointsInput points.
inRangeRange of elements in the array that must be considered for the fit. If Null, all points are considered.
inMaxErrorMaximum allowed fit error. If the calculated error is higher, the function will return Null.
inOutlierSuppressionOutlier suppression technique used by the algorithm. If Null, no outlier suppression is used.
outInliersPoints that the algorithm used to compute the circle object. Useful only when an outlier suppression technique is provided.
outErrorRoot-Mean-Square Error (RMSE) of the fit.
Returns
A conditional object containing the fitted segment. If, for any reason, the fit cannot be performed, the conditional will be Null.