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

Classes

class  oevislib_net.ComputerVision.ShapeFitting.ArcFittingField
 Describes an arc-shaped area used to create an ArcFittingMap. More...
class  oevislib_net.ComputerVision.ShapeFitting.CircleFittingField
 Describes a circle-shaped area used to create a CircleFittingMap. More...
class  oevislib_net.ComputerVision.ShapeFitting.PathFittingField
 Describes a path-shaped area used to create a PathFittingMap. More...
class  oevislib_net.ComputerVision.ShapeFitting.SegmentFittingField
 Describes a segment-shaped area used to create a SegmentFittingMap. More...
class  oevislib_net.ComputerVision.ShapeFitting.ArcFittingMap
 Arc-shaped map typically used to fit arcs to points acquired through edge detection. More...
class  oevislib_net.ComputerVision.ShapeFitting.CircleFittingMap
 Circle-shaped map typically used to fit circles to points acquired through edge detection. More...
class  oevislib_net.ComputerVision.ShapeFitting.PathFittingMap
 Path-shaped map typically used to fit paths to points acquired through edge detection. More...
class  oevislib_net.ComputerVision.ShapeFitting.SegmentFittingMap
 Segment-shaped map typically used to fit segments to points acquired through edge detection. More...

Functions

static ArcFittingMap oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.BuildArcFittingMap (ImageFormat inImageFormat, ArcFittingField inFittingField, Optional< UCS2D > inFieldAlignment=null, int inScanCount=10, int inScanWidth=5, SamplingParams inSamplingParams=null, Optional< Array< Segment2D > > outScanSegments=null)
 Creates and ArcFittingMap starting from the corresponding field.
static CircleFittingMap oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.BuildCircleFittingMap (ImageFormat inImageFormat, CircleFittingField inFittingField, Optional< UCS2D > inFieldAlignment=null, int inScanCount=10, int inScanWidth=5, SamplingParams inSamplingParams=null, Optional< Array< Segment2D > > outScanSegments=null)
 Creates a CircleFittingMap starting from the corresponding field.
static PathFittingMap oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.BuildPathFittingMap (ImageFormat inImageFormat, PathFittingField inFittingField, Optional< UCS2D > inFieldAlignment=null, Optional< float > inScanStep=null, int inScanWidth=5, SamplingParams inSamplingParams=null, Optional< Array< Segment2D > > outScanSegments=null)
 Creates a CircleFittingMap starting from the corresponding field.
static SegmentFittingMap oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.BuildSegmentFittingMap (ImageFormat inImageFormat, SegmentFittingField inFittingField, Optional< UCS2D > inFieldAlignment=null, int inScanCount=10, int inScanWidth=5, SamplingParams inSamplingParams=null, Optional< Array< Segment2D > > outScanSegments=null)
 Creates a SegmentFittingMap starting from the corresponding field.
static Conditional< Arc2Doevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitArc (Image inImage, ArcFittingField inFittingField, Optional< UCS2D > inFieldAlignment=null, int inScanCount=10, int inScanWidth=5, SamplingParams inSamplingParams=null, EdgeScanParams inEdgeScanParams=null, Selection inEdgeSelection=Selection.Best, float inMaxIncompleteness=0.1f, CircleFittingMethod inFittingMethod=CircleFittingMethod.AlgebraicPratt, Optional< float > inMaxError=null, Optional< MEstimator > inOutlierSuppression=null, Optional< LocalBlindness > inLocalBlindness=null, Optional< Array< Conditional< Edge1D > > > outEdges=null, Optional< Array< Point2D > > outInliers=null, Optional< float > outError=null, Optional< Conditional< Profile > > outDeviationProfile=null, Optional< Array< Segment2D > > outScanSegments=null)
 Fits an arc using the edges detected inside the provided scan template.
static Conditional< Arc2Doevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitArc (Image inImage, ArcFittingMap inFittingMap, EdgeScanParams inEdgeScanParams=null, Selection inEdgeSelection=Selection.Best, float inMaxIncompleteness=0.1f, CircleFittingMethod inFittingMethod=CircleFittingMethod.AlgebraicPratt, Optional< float > inMaxError=null, Optional< MEstimator > inOutlierSuppression=null, Optional< LocalBlindness > inLocalBlindness=null, Optional< Array< Conditional< Edge1D > > > outEdges=null, Optional< Array< Point2D > > outInliers=null, Optional< float > outError=null, Optional< Conditional< Profile > > outDeviationProfile=null)
 Fits an arc using the edges detected inside the provided scan template.
static Conditional< Arc2Doevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitArc (Image inImage, ArcFittingField inFittingField, Optional< UCS2D > inFieldAlignment=null, int inScanCount=10, int inScanWidth=5, SamplingParams inSamplingParams=null, RidgeScanParams inRidgeScanParams=null, Selection inRidgeSelection=Selection.Best, float inMaxIncompleteness=0.1f, CircleFittingMethod inFittingMethod=CircleFittingMethod.AlgebraicPratt, Optional< float > inMaxError=null, Optional< MEstimator > inOutlierSuppression=null, Optional< LocalBlindness > inLocalBlindness=null, Optional< Array< Conditional< Ridge1D > > > outRidges=null, Optional< Array< Point2D > > outInliers=null, Optional< float > outError=null, Optional< Conditional< Profile > > outDeviationProfile=null, Optional< Array< Segment2D > > outScanSegments=null)
 Fits an arc using the ridges detected inside the provided scan template.
static Conditional< Arc2Doevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitArc (Image inImage, ArcFittingMap inFittingMap, RidgeScanParams inRidgeScanParams=null, Selection inRidgeSelection=Selection.Best, float inMaxIncompleteness=0.1f, CircleFittingMethod inFittingMethod=CircleFittingMethod.AlgebraicPratt, Optional< float > inMaxError=null, Optional< MEstimator > inOutlierSuppression=null, Optional< LocalBlindness > inLocalBlindness=null, Optional< Array< Conditional< Ridge1D > > > outRidges=null, Optional< Array< Point2D > > outInliers=null, Optional< float > outError=null, Optional< Conditional< Profile > > outDeviationProfile=null)
 Fits an arc using the ridges detected inside the provided scan template.
static Conditional< Arc2Doevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitArc (Image inImage, ArcFittingField inFittingField, Optional< UCS2D > inFieldAlignment=null, int inScanCount=10, int inScanWidth=5, SamplingParams inSamplingParams=null, StripeScanParams inStripeScanParams=null, Selection inStripeSelection=Selection.Best, float inMaxIncompleteness=0.1f, CircleFittingMethod inFittingMethod=CircleFittingMethod.AlgebraicPratt, Optional< float > inMaxError=null, Optional< MEstimator > inOutlierSuppression=null, Optional< LocalBlindness > inLocalBlindness=null, Optional< Conditional< Arc2D > > outInnerArc=null, Optional< Conditional< Arc2D > > outOuterArc=null, Optional< Array< Conditional< Stripe1D > > > outStripes=null, Optional< Array< Point2D > > outStripePoints=null, Optional< float > outError=null, Optional< Conditional< Profile > > outDeviationProfile=null, Optional< Array< Segment2D > > outScanSegments=null)
 Fits an arc using the stripes detected inside the provided scan template.
static Conditional< Arc2Doevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitArc (Image inImage, ArcFittingMap inFittingMap, StripeScanParams inStripeScanParams=null, Selection inStripeSelection=Selection.Best, float inMaxIncompleteness=0.1f, CircleFittingMethod inFittingMethod=CircleFittingMethod.AlgebraicPratt, Optional< float > inMaxError=null, Optional< MEstimator > inOutlierSuppression=null, Optional< LocalBlindness > inLocalBlindness=null, Optional< Conditional< Arc2D > > outInnerArc=null, Optional< Conditional< Arc2D > > outOuterArc=null, Optional< Array< Conditional< Stripe1D > > > outStripes=null, Optional< Array< Point2D > > outStripePoints=null, Optional< float > outError=null, Optional< Conditional< Profile > > outDeviationProfile=null)
 Fits an arc using the stripes detected inside the provided scan template.
static Conditional< Circle2Doevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitCircle (Image inImage, CircleFittingField inFittingField, Optional< UCS2D > inFieldAlignment=null, int inScanCount=10, int inScanWidth=5, SamplingParams inSamplingParams=null, EdgeScanParams inEdgeScanParams=null, Selection inEdgeSelection=Selection.Best, float inMaxIncompleteness=0.1f, CircleFittingMethod inFittingMethod=CircleFittingMethod.AlgebraicPratt, Optional< float > inMaxError=null, Optional< MEstimator > inOutlierSuppression=null, Optional< LocalBlindness > inLocalBlindness=null, Optional< Array< Conditional< Edge1D > > > outEdges=null, Optional< Array< Point2D > > outInliers=null, Optional< float > outError=null, Optional< Conditional< Profile > > outDeviationProfile=null, Optional< Array< Segment2D > > outScanSegments=null)
 Fits a circle using the edges detected inside the provided scan template.
static Conditional< Circle2Doevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitCircle (Image inImage, CircleFittingMap inFittingMap, EdgeScanParams inEdgeScanParams=null, Selection inEdgeSelection=Selection.Best, float inMaxIncompleteness=0.1f, CircleFittingMethod inFittingMethod=CircleFittingMethod.AlgebraicPratt, Optional< float > inMaxError=null, Optional< MEstimator > inOutlierSuppression=null, Optional< LocalBlindness > inLocalBlindness=null, Optional< Array< Conditional< Edge1D > > > outEdges=null, Optional< Array< Point2D > > outInliers=null, Optional< float > outError=null, Optional< Conditional< Profile > > outDeviationProfile=null)
 Fits a circle using the edges detected inside the provided scan template.
static Conditional< Circle2Doevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitCircle (Image inImage, CircleFittingField inFittingField, Optional< UCS2D > inFieldAlignment=null, int inScanCount=10, int inScanWidth=5, SamplingParams inSamplingParams=null, RidgeScanParams inRidgeScanParams=null, Selection inRidgeSelection=Selection.Best, float inMaxIncompleteness=0.1f, CircleFittingMethod inFittingMethod=CircleFittingMethod.AlgebraicPratt, Optional< float > inMaxError=null, Optional< MEstimator > inOutlierSuppression=null, Optional< LocalBlindness > inLocalBlindness=null, Optional< Array< Conditional< Ridge1D > > > outRidges=null, Optional< Array< Point2D > > outInliers=null, Optional< float > outError=null, Optional< Conditional< Profile > > outDeviationProfile=null, Optional< Array< Segment2D > > outScanSegments=null)
 Fits a circle using the ridges detected inside the provided scan template.
static Conditional< Circle2Doevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitCircle (Image inImage, CircleFittingMap inFittingMap, RidgeScanParams inRidgeScanParams=null, Selection inRidgeSelection=Selection.Best, float inMaxIncompleteness=0.1f, CircleFittingMethod inFittingMethod=CircleFittingMethod.AlgebraicPratt, Optional< float > inMaxError=null, Optional< MEstimator > inOutlierSuppression=null, Optional< LocalBlindness > inLocalBlindness=null, Optional< Array< Conditional< Ridge1D > > > outRidges=null, Optional< Array< Point2D > > outInliers=null, Optional< float > outError=null, Optional< Conditional< Profile > > outDeviationProfile=null)
 Fits a circle using the ridges detected inside the provided scan template.
static Conditional< Circle2Doevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitCircle (Image inImage, CircleFittingField inFittingField, Optional< UCS2D > inFieldAlignment=null, int inScanCount=10, int inScanWidth=5, SamplingParams inSamplingParams=null, StripeScanParams inStripeScanParams=null, Selection inStripeSelection=Selection.Best, float inMaxIncompleteness=0.1f, CircleFittingMethod inFittingMethod=CircleFittingMethod.AlgebraicPratt, Optional< float > inMaxError=null, Optional< MEstimator > inOutlierSuppression=null, Optional< LocalBlindness > inLocalBlindness=null, Optional< Conditional< Circle2D > > outInnerCircle=null, Optional< Conditional< Circle2D > > outOuterCircle=null, Optional< Array< Conditional< Stripe1D > > > outStripes=null, Optional< Array< Point2D > > outStripePoints=null, Optional< float > outError=null, Optional< Conditional< Profile > > outDeviationProfile=null, Optional< Array< Segment2D > > outScanSegments=null)
 Fits a circle using the stripes detected inside the provided scan template.
static Conditional< Circle2Doevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitCircle (Image inImage, CircleFittingMap inFittingMap, StripeScanParams inStripeScanParams=null, Selection inStripeSelection=Selection.Best, float inMaxIncompleteness=0.1f, CircleFittingMethod inFittingMethod=CircleFittingMethod.AlgebraicPratt, Optional< float > inMaxError=null, Optional< MEstimator > inOutlierSuppression=null, Optional< LocalBlindness > inLocalBlindness=null, Optional< Conditional< Circle2D > > outInnerCircle=null, Optional< Conditional< Circle2D > > outOuterCircle=null, Optional< Array< Conditional< Stripe1D > > > outStripes=null, Optional< Array< Point2D > > outStripePoints=null, Optional< float > outError=null, Optional< Conditional< Profile > > outDeviationProfile=null)
 Fits a circle using the stripes detected inside the provided scan template.
static Conditional< Pathoevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitPath (Image inImage, PathFittingField inFittingField, Optional< UCS2D > inFieldAlignment=null, Optional< float > inScanStep=null, int inScanWidth=5, SamplingParams inSamplingParams=null, EdgeScanParams inEdgeScanParams=null, Selection inEdgeSelection=Selection.Best, Optional< int > inMaxInterpolationLength=null, Optional< float > inMaxDeviationDelta=null, float inMaxIncompleteness=0.1f, Optional< LocalBlindness > inLocalBlindness=null, Optional< Array< Conditional< Edge1D > > > outEdges=null, Optional< Conditional< Profile > > outDeviationProfile=null, Optional< Array< Segment2D > > outScanSegments=null)
 Fits a path using the edges detected inside the provided scan template.
static Conditional< Pathoevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitPath (Image inImage, PathFittingMap inFittingMap, EdgeScanParams inEdgeScanParams=null, Selection inEdgeSelection=Selection.Best, Optional< int > inMaxInterpolationLength=null, Optional< float > inMaxDeviationDelta=null, float inMaxIncompleteness=0.1f, Optional< LocalBlindness > inLocalBlindness=null, Optional< Array< Conditional< Edge1D > > > outEdges=null, Optional< Conditional< Profile > > outDeviationProfile=null)
 Fits a path using the edges detected inside the provided scan template.
static Conditional< Pathoevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitPath (Image inImage, PathFittingField inFittingField, Optional< UCS2D > inFieldAlignment=null, Optional< float > inScanStep=null, int inScanWidth=5, SamplingParams inSamplingParams=null, RidgeScanParams inRidgeScanParams=null, Selection inRidgeSelection=Selection.Best, Optional< int > inMaxInterpolationLength=null, Optional< float > inMaxDeviationDelta=null, float inMaxIncompleteness=0.1f, Optional< LocalBlindness > inLocalBlindness=null, Optional< Array< Conditional< Ridge1D > > > outRidges=null, Optional< Conditional< Profile > > outDeviationProfile=null, Optional< Array< Segment2D > > outScanSegments=null)
 Fits a path using the ridges detected inside the provided scan template.
static Conditional< Pathoevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitPath (Image inImage, PathFittingMap inFittingMap, RidgeScanParams inRidgeScanParams=null, Selection inRidgeSelection=Selection.Best, Optional< int > inMaxInterpolationLength=null, Optional< float > inMaxDeviationDelta=null, float inMaxIncompleteness=0.1f, Optional< LocalBlindness > inLocalBlindness=null, Optional< Array< Conditional< Ridge1D > > > outRidges=null, Optional< Conditional< Profile > > outDeviationProfile=null)
 Fits a path using the ridges detected inside the provided scan template.
static Conditional< Pathoevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitPath (Image inImage, PathFittingField inFittingField, Optional< UCS2D > inFieldAlignment=null, Optional< float > inScanStep=null, int inScanWidth=5, SamplingParams inSamplingParams=null, StripeScanParams inStripeScanParams=null, Selection inStripeSelection=Selection.Best, Optional< int > inMaxInterpolationLength=null, Optional< float > inMaxDeviationDelta=null, float inMaxIncompleteness=0.1f, Optional< LocalBlindness > inLocalBlindness=null, Optional< Conditional< Path > > outLeftPath=null, Optional< Conditional< Path > > outRightPath=null, Optional< Array< Conditional< Stripe1D > > > outStripes=null, Optional< Conditional< Profile > > outDeviationProfile=null, Optional< Array< Segment2D > > outScanSegments=null)
 Fits a path using the ridges detected inside the provided scan template.
static Conditional< Pathoevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitPath (Image inImage, PathFittingMap inFittingMap, StripeScanParams inStripeScanParams=null, Selection inStripeSelection=Selection.Best, Optional< int > inMaxInterpolationLength=null, Optional< float > inMaxDeviationDelta=null, float inMaxIncompleteness=0.1f, Optional< LocalBlindness > inLocalBlindness=null, Optional< Conditional< Path > > outLeftPath=null, Optional< Conditional< Path > > outRightPath=null, Optional< Array< Conditional< Stripe1D > > > outStripes=null, Optional< Conditional< Profile > > outDeviationProfile=null)
 Fits a path using the ridges detected inside the provided scan template.
static Conditional< Segment2Doevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitSegment (Image inImage, SegmentFittingField inFittingField, Optional< UCS2D > inFieldAlignment=null, int inScanCount=10, int inScanWidth=5, SamplingParams inSamplingParams=null, EdgeScanParams inEdgeScanParams=null, Selection inEdgeSelection=Selection.Best, float inMaxIncompleteness=0.1f, Optional< float > inMaxError=null, Optional< LineMEstimator > inOutlierSuppression=null, Optional< LocalBlindness > inLocalBlindness=null, Optional< Array< Conditional< Edge1D > > > outEdges=null, Optional< Array< Point2D > > outInliers=null, Optional< float > outError=null, Optional< Conditional< Profile > > outDeviationProfile=null, Optional< Array< Segment2D > > outScanSegments=null)
 Fits a segment using the edges detected inside the provided scan template.
static Conditional< Segment2Doevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitSegment (Image inImage, SegmentFittingMap inFittingMap, EdgeScanParams inEdgeScanParams=null, Selection inEdgeSelection=Selection.Best, float inMaxIncompleteness=0.1f, Optional< float > inMaxError=null, Optional< LineMEstimator > inOutlierSuppression=null, Optional< LocalBlindness > inLocalBlindness=null, Optional< Array< Conditional< Edge1D > > > outEdges=null, Optional< Array< Point2D > > outInliers=null, Optional< float > outError=null, Optional< Conditional< Profile > > outDeviationProfile=null)
 Fits a segment using the edges detected inside the provided scan template.
static Conditional< Segment2Doevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitSegment (Image inImage, SegmentFittingField inFittingField, Optional< UCS2D > inFieldAlignment=null, int inScanCount=10, int inScanWidth=5, SamplingParams inSamplingParams=null, RidgeScanParams inRidgeScanParams=null, Selection inRidgeSelection=Selection.Best, float inMaxIncompleteness=0.1f, Optional< float > inMaxError=null, Optional< LineMEstimator > inOutlierSuppression=null, Optional< LocalBlindness > inLocalBlindness=null, Optional< Array< Conditional< Ridge1D > > > outRidges=null, Optional< Array< Point2D > > outInliers=null, Optional< float > outError=null, Optional< Conditional< Profile > > outDeviationProfile=null, Optional< Array< Segment2D > > outScanSegments=null)
 Fits a segment using the ridges detected inside the provided scan template.
static Conditional< Segment2Doevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitSegment (Image inImage, SegmentFittingMap inFittingMap, RidgeScanParams inRidgeScanParams=null, Selection inRidgeSelection=Selection.Best, float inMaxIncompleteness=0.1f, Optional< float > inMaxError=null, Optional< LineMEstimator > inOutlierSuppression=null, Optional< LocalBlindness > inLocalBlindness=null, Optional< Array< Conditional< Ridge1D > > > outRidges=null, Optional< Array< Point2D > > outInliers=null, Optional< float > outError=null, Optional< Conditional< Profile > > outDeviationProfile=null)
 Fits a segment using the ridges detected inside the provided scan template.
static Conditional< Segment2Doevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitSegment (Image inImage, SegmentFittingField inFittingField, Optional< UCS2D > inFieldAlignment=null, int inScanCount=10, int inScanWidth=5, SamplingParams inSamplingParams=null, StripeScanParams inStripeScanParams=null, Selection inStripeSelection=Selection.Best, float inMaxIncompleteness=0.1f, Optional< float > inMaxError=null, Optional< LineMEstimator > inOutlierSuppression=null, Optional< LocalBlindness > inLocalBlindness=null, Optional< Conditional< Segment2D > > outLeftSegment=null, Optional< Conditional< Segment2D > > outRightSegment=null, Optional< Array< Conditional< Stripe1D > > > outStripes=null, Optional< Array< Point2D > > outStripePoints=null, Optional< float > outError=null, Optional< Conditional< Profile > > outDeviationProfile=null, Optional< Array< Segment2D > > outScanSegments=null)
 Fits a segment using the stripes detected inside the provided scan template.
static Conditional< Segment2Doevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitSegment (Image inImage, SegmentFittingMap inFittingMap, StripeScanParams inStripeScanParams=null, Selection inStripeSelection=Selection.Best, float inMaxIncompleteness=0.1f, Optional< float > inMaxError=null, Optional< LineMEstimator > inOutlierSuppression=null, Optional< LocalBlindness > inLocalBlindness=null, Optional< Conditional< Segment2D > > outLeftSegment=null, Optional< Conditional< Segment2D > > outRightSegment=null, Optional< Array< Conditional< Stripe1D > > > outStripes=null, Optional< Array< Point2D > > outStripePoints=null, Optional< float > outError=null, Optional< Conditional< Profile > > outDeviationProfile=null)
 Fits a segment using the stripes detected inside the provided scan template.

Detailed Description

Function Documentation

◆ BuildArcFittingMap()

ArcFittingMap oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.BuildArcFittingMap ( ImageFormat inImageFormat,
ArcFittingField inFittingField,
Optional< UCS2D > inFieldAlignment = null,
int inScanCount = 10,
int inScanWidth = 5,
SamplingParams inSamplingParams = null,
Optional< Array< Segment2D > > outScanSegments = null )
inlinestatic

Creates and ArcFittingMap starting from the corresponding field.

Parameters
inImageFormatMetadata of the image on which the fitting will be performed.
inFittingFieldField on which the fitting map is based.
inFieldAlignmentCoordinate system used to align the field before creating the map. If Null, no alignment is performed.
inScanCountNumber of ScanTemplate objects that will be created inside the map. Range [3, +inf].
inScanWidthWidth of a single ScanTemplate object. Range [1, +inf].
inSamplingParamsParameters used for the image sampling process.
outScanSegmentsSegments formed by the starting and ending point of each ScanTemplate of the map.
Returns
The initialized ArcFittingMap object.

◆ BuildCircleFittingMap()

CircleFittingMap oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.BuildCircleFittingMap ( ImageFormat inImageFormat,
CircleFittingField inFittingField,
Optional< UCS2D > inFieldAlignment = null,
int inScanCount = 10,
int inScanWidth = 5,
SamplingParams inSamplingParams = null,
Optional< Array< Segment2D > > outScanSegments = null )
inlinestatic

Creates a CircleFittingMap starting from the corresponding field.

Parameters
inImageFormatMetadata of the image on which the fitting will be performed.
inFittingFieldField on which the fitting map is based.
inFieldAlignmentCoordinate system used to align the field before creating the map. If Null, no alignment is performed.
inScanCountNumber of ScanTemplate objects that will be created inside the map. Range [3, +inf].
inScanWidthWidth of a single ScanTemplate object. Range [1, +inf].
inSamplingParamsParameters used for the image sampling process.
outScanSegmentsSegments formed by the starting and ending point of each ScanTemplate of the map.
Returns
The initialized CircleFittingMap object.

◆ BuildPathFittingMap()

PathFittingMap oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.BuildPathFittingMap ( ImageFormat inImageFormat,
PathFittingField inFittingField,
Optional< UCS2D > inFieldAlignment = null,
Optional< float > inScanStep = null,
int inScanWidth = 5,
SamplingParams inSamplingParams = null,
Optional< Array< Segment2D > > outScanSegments = null )
inlinestatic

Creates a CircleFittingMap starting from the corresponding field.

Parameters
inImageFormatMetadata of the image on which the fitting will be performed.
inFittingFieldField on which the fitting map is based.
inFieldAlignmentCoordinate system used to align the field before creating the map. If Null, no alignment is performed.
inScanStepStep used to space regularly the path included in the fitting field. Range [0, +inf].
inScanWidthWidth of a single ScanTemplate object. Range [1, +inf].
inSamplingParamsParameters used for the image sampling process.
outScanSegmentsSegments formed by the starting and ending point of each ScanTemplate of the map.
Returns
The initialized PathFittingMap object.

◆ BuildSegmentFittingMap()

SegmentFittingMap oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.BuildSegmentFittingMap ( ImageFormat inImageFormat,
SegmentFittingField inFittingField,
Optional< UCS2D > inFieldAlignment = null,
int inScanCount = 10,
int inScanWidth = 5,
SamplingParams inSamplingParams = null,
Optional< Array< Segment2D > > outScanSegments = null )
inlinestatic

Creates a SegmentFittingMap starting from the corresponding field.

Parameters
inImageFormatMetadata of the image on which the fitting will be performed.
inFittingFieldField on which the fitting map is based.
inFieldAlignmentCoordinate system used to align the field before creating the map. If Null, no alignment is performed.
inScanCountNumber of ScanTemplate objects that will be created inside the map. Range [3, +inf].
inScanWidthWidth of a single ScanTemplate object. Range [1, +inf]
inSamplingParamsParameters used for the image sampling process.
outScanSegmentsSegments formed by the starting and ending point of each ScanTemplate of the map.
Returns
The initialized SegmentFittingMap object.

◆ FitArc() [1/6]

Conditional< Arc2D > oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitArc ( Image inImage,
ArcFittingField inFittingField,
Optional< UCS2D > inFieldAlignment = null,
int inScanCount = 10,
int inScanWidth = 5,
SamplingParams inSamplingParams = null,
EdgeScanParams inEdgeScanParams = null,
Selection inEdgeSelection = Selection::Best,
float inMaxIncompleteness = 0::1f,
CircleFittingMethod inFittingMethod = CircleFittingMethod::AlgebraicPratt,
Optional< float > inMaxError = null,
Optional< MEstimator > inOutlierSuppression = null,
Optional< LocalBlindness > inLocalBlindness = null,
Optional< Array< Conditional< Edge1D > > > outEdges = null,
Optional< Array< Point2D > > outInliers = null,
Optional< float > outError = null,
Optional< Conditional< Profile > > outDeviationProfile = null,
Optional< Array< Segment2D > > outScanSegments = null )
inlinestatic

Fits an arc using the edges detected inside the provided scan template.

Parameters
inImageInput image. It cannot be empty.
inFittingFieldField on which the fitting map is based.
inFieldAlignmentCoordinate system used to align the field before creating the map. If Null, no alignment is performed.
inScanCountNumber of ScanTemplate objects that will be created inside the map. Range [3, +inf].
inScanWidthWidth of a single ScanTemplate object. Range [1, +inf].
inSamplingParamsParameters used for the image sampling process.
inEdgeScanParamsParameters used to control the edge scanning process.
inEdgeSelectionSelect the edge that will be used for the fit in case more than one are detected on the same fit segment.
inMaxIncompletenessSet the maximum number of missing points that will cause the fit to fail. Range [0, 0.999].
inFittingMethodAlgorithm used to fit the arc.
inMaxErrorMaximum allowed fit error. If the calculated error is higher, the function will return Null.
inOutlierSuppressionSelect the MEstimator used to detect inliers. If Null, no outlier detection is performed.
inLocalBlindnessParameters used to prevent the detection of weak edges nearby strong edges.
outEdgesArray containing the detected edges. Each element of the array is a Conditional<Edge1D>, which is Null if the detection in the respective segment failed.
outInliersArray containing the fit inliers. This output is useful only when an MEstimator is selected.
outErrorRoot-Mean-Square Error (RMSE) of the fit.
outDeviationProfileProfile in which each element is the distance of the detected point from the theoretical value.
outScanSegmentsSegments formed by the starting and ending point of each ScanTemplate of the map.
Returns
The fitted arc. The object is Null if the fit fails for any reason.

◆ FitArc() [2/6]

Conditional< Arc2D > oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitArc ( Image inImage,
ArcFittingField inFittingField,
Optional< UCS2D > inFieldAlignment = null,
int inScanCount = 10,
int inScanWidth = 5,
SamplingParams inSamplingParams = null,
RidgeScanParams inRidgeScanParams = null,
Selection inRidgeSelection = Selection::Best,
float inMaxIncompleteness = 0::1f,
CircleFittingMethod inFittingMethod = CircleFittingMethod::AlgebraicPratt,
Optional< float > inMaxError = null,
Optional< MEstimator > inOutlierSuppression = null,
Optional< LocalBlindness > inLocalBlindness = null,
Optional< Array< Conditional< Ridge1D > > > outRidges = null,
Optional< Array< Point2D > > outInliers = null,
Optional< float > outError = null,
Optional< Conditional< Profile > > outDeviationProfile = null,
Optional< Array< Segment2D > > outScanSegments = null )
inlinestatic

Fits an arc using the ridges detected inside the provided scan template.

Parameters
inImageInput image. It cannot be empty.
inFittingFieldField on which the fitting map is based.
inFieldAlignmentCoordinate system used to align the field before creating the map. If Null, no alignment is performed.
inScanCountNumber of ScanTemplate objects that will be created inside the map. Range [3, +inf].
inScanWidthWidth of a single ScanTemplate object. Range [1, +inf].
inSamplingParamsParameters used for the image sampling process.
inRidgeScanParamsParameters used to control the ridge scanning process.
inRidgeSelectionSelect the ridge that will be used for the fit in case more than one are detected on the same fit segment.
inMaxIncompletenessSet the maximum number of missing points that will cause the fit to fail. Range [0, 0.999].
inFittingMethodAlgorithm used to fit the arc.
inMaxErrorMaximum allowed fit error. If the calculated error is higher, the function will return Null.
inOutlierSuppressionSelect the MEstimator used to detect inliers. If Null, no outlier detection is performed.
inLocalBlindnessParameters used to prevent the detection of weak edges nearby strong edges.
outRidgesArray containing the detected ridges. Each element of the array is a Conditional<Ridge1D>, which is Null if the detection in the respective segment failed.
outInliersArray containing the fit inliers. This output is useful only when an MEstimator is selected.
outErrorRoot-Mean-Square Error (RMSE) of the fit.
outDeviationProfileProfile in which each element is the distance of the detected point from the theoretical value.
outScanSegmentsSegments formed by the starting and ending point of each ScanTemplate of the map.
Returns
The fitted arc. The object is Null if the fit fails for any reason.

◆ FitArc() [3/6]

Conditional< Arc2D > oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitArc ( Image inImage,
ArcFittingField inFittingField,
Optional< UCS2D > inFieldAlignment = null,
int inScanCount = 10,
int inScanWidth = 5,
SamplingParams inSamplingParams = null,
StripeScanParams inStripeScanParams = null,
Selection inStripeSelection = Selection::Best,
float inMaxIncompleteness = 0::1f,
CircleFittingMethod inFittingMethod = CircleFittingMethod::AlgebraicPratt,
Optional< float > inMaxError = null,
Optional< MEstimator > inOutlierSuppression = null,
Optional< LocalBlindness > inLocalBlindness = null,
Optional< Conditional< Arc2D > > outInnerArc = null,
Optional< Conditional< Arc2D > > outOuterArc = null,
Optional< Array< Conditional< Stripe1D > > > outStripes = null,
Optional< Array< Point2D > > outStripePoints = null,
Optional< float > outError = null,
Optional< Conditional< Profile > > outDeviationProfile = null,
Optional< Array< Segment2D > > outScanSegments = null )
inlinestatic

Fits an arc using the stripes detected inside the provided scan template.

Parameters
inImageInput image. It cannot be empty.
inFittingFieldField on which the fitting map is based.
inFieldAlignmentCoordinate system used to align the field before creating the map. If Null, no alignment is performed.
inScanCountNumber of ScanTemplate objects that will be created inside the map. Range [3, +inf].
inScanWidthWidth of a single ScanTemplate object. Range [1, +inf].
inSamplingParamsParameters used for the image sampling process.
inStripeScanParamsParameters used to control the stripe scanning process.
inStripeSelectionSelect the stripe that will be used for the fit in case more than one are detected on the same fit segment.
inMaxIncompletenessSet the maximum number of missing points that will cause the fit to fail. Range [0, 0.999].
inFittingMethodAlgorithm used to fit the arc.
inMaxErrorMaximum allowed fit error. If the calculated error is higher, the function will return Null.
inOutlierSuppressionSelect the MEstimator used to detect inliers. If Null, no outlier detection is performed.
inLocalBlindnessParameters used to prevent the detection of weak edges nearby strong edges.
outInnerArcArc fitted using the first points of the stripe segment.
outOuterArcArc fitted using the second points of the stripe segment.
outStripesArray containing the detected stripes. Each element of the array is a Conditional<Stripe1D>, which is Null if the detection in the respective segment failed.
outStripePointsArray containing the points acquired from each stripe.
outErrorRoot-Mean-Square Error (RMSE) of the fit.
outDeviationProfileProfile in which each element is the distance of the detected point from the theoretical value.
outScanSegmentsSegments formed by the starting and ending point of each ScanTemplate of the map.
Returns
The fitted arc. The object is Null if the fit fails for any reason.

◆ FitArc() [4/6]

Conditional< Arc2D > oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitArc ( Image inImage,
ArcFittingMap inFittingMap,
EdgeScanParams inEdgeScanParams = null,
Selection inEdgeSelection = Selection::Best,
float inMaxIncompleteness = 0::1f,
CircleFittingMethod inFittingMethod = CircleFittingMethod::AlgebraicPratt,
Optional< float > inMaxError = null,
Optional< MEstimator > inOutlierSuppression = null,
Optional< LocalBlindness > inLocalBlindness = null,
Optional< Array< Conditional< Edge1D > > > outEdges = null,
Optional< Array< Point2D > > outInliers = null,
Optional< float > outError = null,
Optional< Conditional< Profile > > outDeviationProfile = null )
inlinestatic

Fits an arc using the edges detected inside the provided scan template.

Parameters
inImageInput image. It cannot be empty.
inFittingMapInput fitting map. The map must be initialized using the buildArcFittingMap() function.
inEdgeScanParamsParameters used to control the edge scanning process.
inEdgeSelectionSelect the edge that will be used for the fit in case more than one are detected on the same fit segment.
inMaxIncompletenessSet the maximum number of missing points that will cause the fit to fail. Range [0, 0.999].
inFittingMethodAlgorithm used to fit the arc.
inMaxErrorMaximum allowed fit error. If the calculated error is higher, the function will return Null.
inOutlierSuppressionSelect the MEstimator used to detect inliers. If Null, no outlier detection is performed.
inLocalBlindnessParameters used to prevent the detection of weak edges nearby strong edges.
outEdgesArray containing the detected edges. Each element of the array is a Conditional<Edge1D>, which is Null if the detection in the respective segment failed.
outInliersArray containing the fit inliers. This output is useful only when an MEstimator is selected.
outErrorRoot-Mean-Square Error (RMSE) of the fit.
outDeviationProfileProfile in which each element is the distance of the detected point from the theoretical value.
Returns
The fitted arc. The object is Null if the fit fails for any reason.

◆ FitArc() [5/6]

Conditional< Arc2D > oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitArc ( Image inImage,
ArcFittingMap inFittingMap,
RidgeScanParams inRidgeScanParams = null,
Selection inRidgeSelection = Selection::Best,
float inMaxIncompleteness = 0::1f,
CircleFittingMethod inFittingMethod = CircleFittingMethod::AlgebraicPratt,
Optional< float > inMaxError = null,
Optional< MEstimator > inOutlierSuppression = null,
Optional< LocalBlindness > inLocalBlindness = null,
Optional< Array< Conditional< Ridge1D > > > outRidges = null,
Optional< Array< Point2D > > outInliers = null,
Optional< float > outError = null,
Optional< Conditional< Profile > > outDeviationProfile = null )
inlinestatic

Fits an arc using the ridges detected inside the provided scan template.

Parameters
inImageInput image. It cannot be empty.
inFittingMapInput fitting map. The map must be initialized using the buildArcFittingMap() function.
inRidgeScanParamsParameters used to control the ridge scanning process.
inRidgeSelectionSelect the ridge that will be used for the fit in case more than one are detected on the same fit segment.
inMaxIncompletenessSet the maximum number of missing points that will cause the fit to fail. Range [0, 0.999].
inFittingMethodAlgorithm used to fit the arc.
inMaxErrorMaximum allowed fit error. If the calculated error is higher, the function will return Null.
inOutlierSuppressionSelect the MEstimator used to detect inliers. If Null, no outlier detection is performed.
inLocalBlindnessParameters used to prevent the detection of weak edges nearby strong edges.
outRidgesArray containing the detected ridges. Each element of the array is a Conditional<Ridge1D>, which is Null if the detection in the respective segment failed.
outInliersArray containing the fit inliers. This output is useful only when an MEstimator is selected.
outErrorRoot-Mean-Square Error (RMSE) of the fit.
outDeviationProfileProfile in which each element is the distance of the detected point from the theoretical value.
Returns
The fitted arc. The object is Null if the fit fails for any reason.

◆ FitArc() [6/6]

Conditional< Arc2D > oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitArc ( Image inImage,
ArcFittingMap inFittingMap,
StripeScanParams inStripeScanParams = null,
Selection inStripeSelection = Selection::Best,
float inMaxIncompleteness = 0::1f,
CircleFittingMethod inFittingMethod = CircleFittingMethod::AlgebraicPratt,
Optional< float > inMaxError = null,
Optional< MEstimator > inOutlierSuppression = null,
Optional< LocalBlindness > inLocalBlindness = null,
Optional< Conditional< Arc2D > > outInnerArc = null,
Optional< Conditional< Arc2D > > outOuterArc = null,
Optional< Array< Conditional< Stripe1D > > > outStripes = null,
Optional< Array< Point2D > > outStripePoints = null,
Optional< float > outError = null,
Optional< Conditional< Profile > > outDeviationProfile = null )
inlinestatic

Fits an arc using the stripes detected inside the provided scan template.

Parameters
inImageInput image. It cannot be empty.
inFittingMapInput fitting map. The map must be initialized using the buildArcFittingMap() function.
inStripeScanParamsParameters used to control the stripe scanning process.
inStripeSelectionSelect the stripe that will be used for the fit in case more than one are detected on the same fit segment.
inMaxIncompletenessSet the maximum number of missing points that will cause the fit to fail. Range [0, 0.999].
inFittingMethodAlgorithm used to fit the arc.
inMaxErrorMaximum allowed fit error. If the calculated error is higher, the function will return Null.
inOutlierSuppressionSelect the MEstimator used to detect inliers. If Null, no outlier detection is performed.
inLocalBlindnessParameters used to prevent the detection of weak edges nearby strong edges.
outInnerArcArc fitted using the first points of the stripe segment.
outOuterArcArc fitted using the second points of the stripe segment.
outStripesArray containing the detected stripes. Each element of the array is a Conditional<Stripe1D>, which is Null if the detection in the respective segment failed.
outStripePointsArray containing the points acquired from each stripe.
outErrorRoot-Mean-Square Error (RMSE) of the fit.
outDeviationProfileProfile in which each element is the distance of the detected point from the theoretical value.
Returns
The arc fitted using the stripe midpoints. The object is Null if the fit fails for any reason.

◆ FitCircle() [1/6]

Conditional< Circle2D > oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitCircle ( Image inImage,
CircleFittingField inFittingField,
Optional< UCS2D > inFieldAlignment = null,
int inScanCount = 10,
int inScanWidth = 5,
SamplingParams inSamplingParams = null,
EdgeScanParams inEdgeScanParams = null,
Selection inEdgeSelection = Selection::Best,
float inMaxIncompleteness = 0::1f,
CircleFittingMethod inFittingMethod = CircleFittingMethod::AlgebraicPratt,
Optional< float > inMaxError = null,
Optional< MEstimator > inOutlierSuppression = null,
Optional< LocalBlindness > inLocalBlindness = null,
Optional< Array< Conditional< Edge1D > > > outEdges = null,
Optional< Array< Point2D > > outInliers = null,
Optional< float > outError = null,
Optional< Conditional< Profile > > outDeviationProfile = null,
Optional< Array< Segment2D > > outScanSegments = null )
inlinestatic

Fits a circle using the edges detected inside the provided scan template.

Parameters
inImageInput image. It cannot be empty.
inFittingFieldField on which the fitting map is based.
inFieldAlignmentCoordinate system used to align the field before creating the map. If Null, no alignment is performed.
inScanCountNumber of ScanTemplate objects that will be created inside the map. Range [3, +inf].
inScanWidthWidth of a single ScanTemplate object. Range [1, +inf].
inSamplingParamsParameters used for the image sampling process.
inEdgeScanParamsParameters used to control the edge scanning process.
inEdgeSelectionSelect the edge that will be used for the fit in case more than one are detected on the same fit segment.
inMaxIncompletenessSet the maximum number of missing points that will cause the fit to fail. Range [0, 0.999].
inFittingMethodAlgorithm used to fit the circle.
inMaxErrorMaximum allowed fit error. If the calculated error is higher, the function will return Null.
inOutlierSuppressionSelect the MEstimator used to detect inliers. If Null, no outlier detection is performed.
inLocalBlindnessParameters used to prevent the detection of weak edges nearby strong edges.
outEdgesArray containing the detected edges. Each element of the array is a Conditional<Edge1D>, which is Null if the detection in the respective segment failed.
outInliersArray containing the fit inliers. This output is useful only when an MEstimator is selected.
outErrorRoot-Mean-Square Error (RMSE) of the fit.
outDeviationProfileProfile in which each element is the distance of the detected point from the theoretical value.
outScanSegmentsSegments formed by the starting and ending point of each ScanTemplate of the map.
Returns
The fitted circle. The object is Null if the fit fails for any reason.

◆ FitCircle() [2/6]

Conditional< Circle2D > oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitCircle ( Image inImage,
CircleFittingField inFittingField,
Optional< UCS2D > inFieldAlignment = null,
int inScanCount = 10,
int inScanWidth = 5,
SamplingParams inSamplingParams = null,
RidgeScanParams inRidgeScanParams = null,
Selection inRidgeSelection = Selection::Best,
float inMaxIncompleteness = 0::1f,
CircleFittingMethod inFittingMethod = CircleFittingMethod::AlgebraicPratt,
Optional< float > inMaxError = null,
Optional< MEstimator > inOutlierSuppression = null,
Optional< LocalBlindness > inLocalBlindness = null,
Optional< Array< Conditional< Ridge1D > > > outRidges = null,
Optional< Array< Point2D > > outInliers = null,
Optional< float > outError = null,
Optional< Conditional< Profile > > outDeviationProfile = null,
Optional< Array< Segment2D > > outScanSegments = null )
inlinestatic

Fits a circle using the ridges detected inside the provided scan template.

Parameters
inImageInput image. It cannot be empty.
inFittingFieldField on which the fitting map is based.
inFieldAlignmentCoordinate system used to align the field before creating the map. If Null, no alignment is performed.
inScanCountNumber of ScanTemplate objects that will be created inside the map. Range [3, +inf].
inScanWidthWidth of a single ScanTemplate object. Range [1, +inf].
inSamplingParamsParameters used for the image sampling process.
inRidgeScanParamsParameters used to control the ridge scanning process.
inRidgeSelectionSelect the ridge that will be used for the fit in case more than one are detected on the same fit segment.
inMaxIncompletenessSet the maximum number of missing points that will cause the fit to fail. Range [0, 0.999].
inFittingMethodAlgorithm used to fit the circle.
inMaxErrorMaximum allowed fit error. If the calculated error is higher, the function will return Null.
inOutlierSuppressionSelect the MEstimator used to detect inliers. If Null, no outlier detection is performed.
inLocalBlindnessParameters used to prevent the detection of weak edges nearby strong edges.
outRidgesArray containing the detected ridges. Each element of the array is a Conditional<Ridge1D>, which is Null if the detection in the respective segment failed.
outInliersArray containing the fit inliers. This output is useful only when an MEstimator is selected.
outErrorRoot-Mean-Square Error (RMSE) of the fit.
outDeviationProfileProfile in which each element is the distance of the detected point from the theoretical value.
outScanSegmentsSegments formed by the starting and ending point of each ScanTemplate of the map.
Returns
The fitted circle. The object is Null if the fit fails for any reason.

◆ FitCircle() [3/6]

Conditional< Circle2D > oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitCircle ( Image inImage,
CircleFittingField inFittingField,
Optional< UCS2D > inFieldAlignment = null,
int inScanCount = 10,
int inScanWidth = 5,
SamplingParams inSamplingParams = null,
StripeScanParams inStripeScanParams = null,
Selection inStripeSelection = Selection::Best,
float inMaxIncompleteness = 0::1f,
CircleFittingMethod inFittingMethod = CircleFittingMethod::AlgebraicPratt,
Optional< float > inMaxError = null,
Optional< MEstimator > inOutlierSuppression = null,
Optional< LocalBlindness > inLocalBlindness = null,
Optional< Conditional< Circle2D > > outInnerCircle = null,
Optional< Conditional< Circle2D > > outOuterCircle = null,
Optional< Array< Conditional< Stripe1D > > > outStripes = null,
Optional< Array< Point2D > > outStripePoints = null,
Optional< float > outError = null,
Optional< Conditional< Profile > > outDeviationProfile = null,
Optional< Array< Segment2D > > outScanSegments = null )
inlinestatic

Fits a circle using the stripes detected inside the provided scan template.

Parameters
inImageInput image. It cannot be empty.
inFittingFieldField on which the fitting map is based.
inFieldAlignmentCoordinate system used to align the field before creating the map. If Null, no alignment is performed.
inScanCountNumber of ScanTemplate objects that will be created inside the map. Range [3, +inf].
inScanWidthWidth of a single ScanTemplate object. Range [1, +inf].
inSamplingParamsParameters used for the image sampling process.
inStripeScanParamsParameters used to control the stripe scanning process.
inStripeSelectionSelect the stripe that will be used for the fit in case more than one are detected on the same fit segment.
inMaxIncompletenessSet the maximum number of missing points that will cause the fit to fail. Range [0, 0.999].
inFittingMethodAlgorithm used to fit the circle.
inMaxErrorMaximum allowed fit error. If the calculated error is higher, the function will return Null.
inOutlierSuppressionSelect the MEstimator used to detect inliers. If Null, no outlier detection is performed.
inLocalBlindnessParameters used to prevent the detection of weak edges nearby strong edges.
outInnerCircleCircle fitted using the first points of the stripe segment.
outOuterCircleCircle fitted using the second points of the stripe segment.
outStripesArray containing the detected stripes. Each element of the array is a Conditional<Stripe1D>, which is Null if the detection in the respective segment failed.
outStripePointsArray containing the points acquired from each stripe.
outErrorRoot-Mean-Square Error (RMSE) of the fit.
outDeviationProfileProfile in which each element is the distance of the detected point from the theoretical value.
outScanSegmentsSegments formed by the starting and ending point of each ScanTemplate of the map.
Returns
The circle fitted using the stripe midpoints. The object is Null if the fit fails for any reason.

◆ FitCircle() [4/6]

Conditional< Circle2D > oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitCircle ( Image inImage,
CircleFittingMap inFittingMap,
EdgeScanParams inEdgeScanParams = null,
Selection inEdgeSelection = Selection::Best,
float inMaxIncompleteness = 0::1f,
CircleFittingMethod inFittingMethod = CircleFittingMethod::AlgebraicPratt,
Optional< float > inMaxError = null,
Optional< MEstimator > inOutlierSuppression = null,
Optional< LocalBlindness > inLocalBlindness = null,
Optional< Array< Conditional< Edge1D > > > outEdges = null,
Optional< Array< Point2D > > outInliers = null,
Optional< float > outError = null,
Optional< Conditional< Profile > > outDeviationProfile = null )
inlinestatic

Fits a circle using the edges detected inside the provided scan template.

Parameters
inImageInput image. It cannot be empty.
inFittingMapInput fitting map. The map must be initialized using the buildCircleFittingMap() function.
inEdgeScanParamsParameters used to control the edge scanning process.
inEdgeSelectionSelect the edge that will be used for the fit in case more than one are detected on the same fit segment.
inMaxIncompletenessSet the maximum number of missing points that will cause the fit to fail. Range [0, 0.999].
inFittingMethodAlgorithm used to fit the circle.
inMaxErrorMaximum allowed fit error. If the calculated error is higher, the function will return Null.
inOutlierSuppressionSelect the MEstimator used to detect inliers. If Null, no outlier detection is performed.
inLocalBlindnessParameters used to prevent the detection of weak edges nearby strong edges.
outEdgesArray containing the detected edges. Each element of the array is a Conditional<Edge1D>, which is Null if the detection in the respective segment failed.
outInliersArray containing the fit inliers. This output is useful only when an MEstimator is selected.
outErrorRoot-Mean-Square Error (RMSE) of the fit.
outDeviationProfileProfile in which each element is the distance of the detected point from the theoretical value.
Returns
The fitted circle. The object is Null if the fit fails for any reason.

◆ FitCircle() [5/6]

Conditional< Circle2D > oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitCircle ( Image inImage,
CircleFittingMap inFittingMap,
RidgeScanParams inRidgeScanParams = null,
Selection inRidgeSelection = Selection::Best,
float inMaxIncompleteness = 0::1f,
CircleFittingMethod inFittingMethod = CircleFittingMethod::AlgebraicPratt,
Optional< float > inMaxError = null,
Optional< MEstimator > inOutlierSuppression = null,
Optional< LocalBlindness > inLocalBlindness = null,
Optional< Array< Conditional< Ridge1D > > > outRidges = null,
Optional< Array< Point2D > > outInliers = null,
Optional< float > outError = null,
Optional< Conditional< Profile > > outDeviationProfile = null )
inlinestatic

Fits a circle using the ridges detected inside the provided scan template.

Parameters
inImageInput image. It cannot be empty.
inFittingMapInput fitting map. The map must be initialized using the buildCircleFittingMap() function.
inRidgeScanParamsParameters used to control the ridge scanning process.
inRidgeSelectionSelect the ridge that will be used for the fit in case more than one are detected on the same fit segment.
inMaxIncompletenessSet the maximum number of missing points that will cause the fit to fail. Range [0, 0.999].
inFittingMethodAlgorithm used to fit the circle.
inMaxErrorMaximum allowed fit error. If the calculated error is higher, the function will return Null.
inOutlierSuppressionSelect the MEstimator used to detect inliers. If Null, no outlier detection is performed.
inLocalBlindnessParameters used to prevent the detection of weak edges nearby strong edges.
outRidgesArray containing the detected ridges. Each element of the array is a Conditional<Ridge1D>, which is Null if the detection in the respective segment failed.
outInliersArray containing the fit inliers. This output is useful only when an MEstimator is selected.
outErrorRoot-Mean-Square Error (RMSE) of the fit.
outDeviationProfileProfile in which each element is the distance of the detected point from the theoretical value.
Returns
The fitted circle. The object is Null if the fit fails for any reason.

◆ FitCircle() [6/6]

Conditional< Circle2D > oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitCircle ( Image inImage,
CircleFittingMap inFittingMap,
StripeScanParams inStripeScanParams = null,
Selection inStripeSelection = Selection::Best,
float inMaxIncompleteness = 0::1f,
CircleFittingMethod inFittingMethod = CircleFittingMethod::AlgebraicPratt,
Optional< float > inMaxError = null,
Optional< MEstimator > inOutlierSuppression = null,
Optional< LocalBlindness > inLocalBlindness = null,
Optional< Conditional< Circle2D > > outInnerCircle = null,
Optional< Conditional< Circle2D > > outOuterCircle = null,
Optional< Array< Conditional< Stripe1D > > > outStripes = null,
Optional< Array< Point2D > > outStripePoints = null,
Optional< float > outError = null,
Optional< Conditional< Profile > > outDeviationProfile = null )
inlinestatic

Fits a circle using the stripes detected inside the provided scan template.

Parameters
inImageInput image. It cannot be empty.
inFittingMapInput fitting map. The map must be initialized using the buildCircleFittingMap() function.
inStripeScanParamsParameters used to control the stripe scanning process.
inStripeSelectionSelect the stripe that will be used for the fit in case more than one are detected on the same fit segment.
inMaxIncompletenessSet the maximum number of missing points that will cause the fit to fail. Range [0, 0.999].
inFittingMethodAlgorithm used to fit the circle.
inMaxErrorMaximum allowed fit error. If the calculated error is higher, the function will return Null.
inOutlierSuppressionSelect the MEstimator used to detect inliers. If Null, no outlier detection is performed.
inLocalBlindnessParameters used to prevent the detection of weak edges nearby strong edges.
outInnerCircleCircle fitted using the first points of the stripe segment.
outOuterCircleCircle fitted using the second points of the stripe segment.
outStripesArray containing the detected stripes. Each element of the array is a Conditional<Stripe1D>, which is Null if the detection in the respective segment failed.
outStripePointsArray containing the points acquired from each stripe.
outErrorRoot-Mean-Square Error (RMSE) of the fit.
outDeviationProfileProfile in which each element is the distance of the detected point from the theoretical value.
Returns
The circle fitted using the stripe midpoints. The object is Null if the fit fails for any reason.

◆ FitPath() [1/6]

Conditional< Path > oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitPath ( Image inImage,
PathFittingField inFittingField,
Optional< UCS2D > inFieldAlignment = null,
Optional< float > inScanStep = null,
int inScanWidth = 5,
SamplingParams inSamplingParams = null,
EdgeScanParams inEdgeScanParams = null,
Selection inEdgeSelection = Selection::Best,
Optional< int > inMaxInterpolationLength = null,
Optional< float > inMaxDeviationDelta = null,
float inMaxIncompleteness = 0::1f,
Optional< LocalBlindness > inLocalBlindness = null,
Optional< Array< Conditional< Edge1D > > > outEdges = null,
Optional< Conditional< Profile > > outDeviationProfile = null,
Optional< Array< Segment2D > > outScanSegments = null )
inlinestatic

Fits a path using the edges detected inside the provided scan template.

Parameters
inImageInput image. It cannot be empty.
inFittingFieldField on which the fitting map is based.
inFieldAlignmentCoordinate system used to align the field before creating the map. If Null, no alignment is performed.
inScanStepStep used to space regularly the path included in the fitting field. Range [0, +inf].
inScanWidthWidth of a single ScanTemplate object. Range [1, +inf].
inSamplingParamsParameters used for the image sampling process.
inEdgeScanParamsParameters used to control the edge scanning process.
inEdgeSelectionSelect the edge that will be used for the fit in case more than one are detected on the same fit segment.
inMaxInterpolationLengthMaximum number of consecutive points that is not found during the scanning process.
inMaxDeviationDeltaMaximum allowed deviation between detected points and their theoretical value.
inMaxIncompletenessSet the maximum number of missing points that will cause the fit to fail. Range [0, 0.999].
inLocalBlindnessParameters used to prevent the detection of weak edges nearby strong edges.
outEdgesArray containing the detected edges. Each element of the array is a Conditional<Edge1D>, which is Null if the detection in the respective segment failed.
outDeviationProfileProfile in which each element is the distance of the detected point from the theoretical value.
outScanSegmentsSegments formed by the starting and ending point of each ScanTemplate of the map.
Returns
The fitted path. The object is Null if the fit fails for any reason.

◆ FitPath() [2/6]

Conditional< Path > oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitPath ( Image inImage,
PathFittingField inFittingField,
Optional< UCS2D > inFieldAlignment = null,
Optional< float > inScanStep = null,
int inScanWidth = 5,
SamplingParams inSamplingParams = null,
RidgeScanParams inRidgeScanParams = null,
Selection inRidgeSelection = Selection::Best,
Optional< int > inMaxInterpolationLength = null,
Optional< float > inMaxDeviationDelta = null,
float inMaxIncompleteness = 0::1f,
Optional< LocalBlindness > inLocalBlindness = null,
Optional< Array< Conditional< Ridge1D > > > outRidges = null,
Optional< Conditional< Profile > > outDeviationProfile = null,
Optional< Array< Segment2D > > outScanSegments = null )
inlinestatic

Fits a path using the ridges detected inside the provided scan template.

Parameters
inImageInput image. It cannot be empty.
inFittingFieldField on which the fitting map is based.
inFieldAlignmentCoordinate system used to align the field before creating the map. If Null, no alignment is performed.
inScanStepStep used to space regularly the path included in the fitting field. Range [0, +inf].
inScanWidthWidth of a single ScanTemplate object. Range [1, +inf].
inSamplingParamsParameters used for the image sampling process.
inRidgeScanParamsParameters used to control the ridge scanning process.
inRidgeSelectionSelect the ridge that will be used for the fit in case more than one are detected on the same fit segment.
inMaxInterpolationLengthMaximum number of consecutive points that is not found during the scanning process. Range [0, +inf].
inMaxDeviationDeltaMaximum allowed deviation between detected points and their theoretical value. Range [0, +inf].
inMaxIncompletenessSet the maximum number of missing points that will cause the fit to fail. Range [0, 0.999].
inLocalBlindnessParameters used to prevent the detection of weak edges nearby strong edges.
outRidgesArray containing the detected ridges. Each element of the array is a Conditional<Ridge1D>, which is Null if the detection in the respective segment failed.
outDeviationProfileProfile in which each element is the distance of the detected point from the theoretical value.
outScanSegmentsSegments formed by the starting and ending point of each ScanTemplate of the map.
Returns
The fitted path. The object is Null if the fit fails for any reason.

◆ FitPath() [3/6]

Conditional< Path > oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitPath ( Image inImage,
PathFittingField inFittingField,
Optional< UCS2D > inFieldAlignment = null,
Optional< float > inScanStep = null,
int inScanWidth = 5,
SamplingParams inSamplingParams = null,
StripeScanParams inStripeScanParams = null,
Selection inStripeSelection = Selection::Best,
Optional< int > inMaxInterpolationLength = null,
Optional< float > inMaxDeviationDelta = null,
float inMaxIncompleteness = 0::1f,
Optional< LocalBlindness > inLocalBlindness = null,
Optional< Conditional< Path > > outLeftPath = null,
Optional< Conditional< Path > > outRightPath = null,
Optional< Array< Conditional< Stripe1D > > > outStripes = null,
Optional< Conditional< Profile > > outDeviationProfile = null,
Optional< Array< Segment2D > > outScanSegments = null )
inlinestatic

Fits a path using the ridges detected inside the provided scan template.

Parameters
inImageInput image. It cannot be empty.
inFittingFieldField on which the fitting map is based.
inFieldAlignmentCoordinate system used to align the field before creating the map. If Null, no alignment is performed.
inScanStepStep used to space regularly the path included in the fitting field. Range [0, +inf].
inScanWidthWidth of a single ScanTemplate object. Range [1, +inf].
inSamplingParamsParameters used for the image sampling process.
inStripeScanParamsParameters used to control the stripe scanning process.
inStripeSelectionSelect the stripe that will be used for the fit in case more than one are detected on the same fit segment.
inMaxInterpolationLengthMaximum number of consecutive points that is not found during the scanning process.
inMaxDeviationDeltaMaximum allowed deviation between detected points and their theoretical value.
inMaxIncompletenessSet the maximum number of missing points that will cause the fit to fail. Range [0, 0.999].
inLocalBlindnessParameters used to prevent the detection of weak edges nearby strong edges.
outLeftPathPath fitted using the first points of the stripe segment.
outRightPathPath fitted using the second points of the stripe segment.
outStripesArray containing the detected stripes. Each element of the array is a Conditional<Stripe1D>, which is Null if the detection in the respective segment failed.
outDeviationProfileProfile in which each element is the distance of the detected point from the theoretical value.
outScanSegmentsSegments formed by the starting and ending point of each ScanTemplate of the map.
Returns
The path fitted using the stripe midpoints. The object is Null if the fit fails for any reason.

◆ FitPath() [4/6]

Conditional< Path > oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitPath ( Image inImage,
PathFittingMap inFittingMap,
EdgeScanParams inEdgeScanParams = null,
Selection inEdgeSelection = Selection::Best,
Optional< int > inMaxInterpolationLength = null,
Optional< float > inMaxDeviationDelta = null,
float inMaxIncompleteness = 0::1f,
Optional< LocalBlindness > inLocalBlindness = null,
Optional< Array< Conditional< Edge1D > > > outEdges = null,
Optional< Conditional< Profile > > outDeviationProfile = null )
inlinestatic

Fits a path using the edges detected inside the provided scan template.

Parameters
inImageInput image. It cannot be empty.
inFittingMapInput fitting map. The map must be initialized using the buildPathFittingMap() function.
inEdgeScanParamsParameters used to control the edge scanning process.
inEdgeSelectionSelect the edge that will be used for the fit in case more than one are detected on the same fit segment.
inMaxInterpolationLengthMaximum number of consecutive points that is not found during the scanning process. Range [0, +inf].
inMaxDeviationDeltaMaximum allowed deviation between detected points and their theoretical value. Range [0, +inf].
inMaxIncompletenessSet the maximum number of missing points that will cause the fit to fail. Range [0, 0.999].
inLocalBlindnessParameters used to prevent the detection of weak edges nearby strong edges.
outEdgesArray containing the detected edges. Each element of the array is a Conditional<Edge1D>, which is Null if the detection in the respective segment failed.
outDeviationProfileProfile in which each element is the distance of the detected point from the theoretical value.
Returns
The fitted path. The object is Null if the fit fails for any reason.

◆ FitPath() [5/6]

Conditional< Path > oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitPath ( Image inImage,
PathFittingMap inFittingMap,
RidgeScanParams inRidgeScanParams = null,
Selection inRidgeSelection = Selection::Best,
Optional< int > inMaxInterpolationLength = null,
Optional< float > inMaxDeviationDelta = null,
float inMaxIncompleteness = 0::1f,
Optional< LocalBlindness > inLocalBlindness = null,
Optional< Array< Conditional< Ridge1D > > > outRidges = null,
Optional< Conditional< Profile > > outDeviationProfile = null )
inlinestatic

Fits a path using the ridges detected inside the provided scan template.

Parameters
inImageInput image. It cannot be empty.
inFittingMapInput fitting map. The map must be initialized using the buildPathFittingMap() function.
inRidgeScanParamsParameters used to control the ridge scanning process.
inRidgeSelectionSelect the ridge that will be used for the fit in case more than one are detected on the same fit segment.
inMaxInterpolationLengthMaximum number of consecutive points that is not found during the scanning process. Range [0, +inf].
inMaxDeviationDeltaMaximum allowed deviation between detected points and their theoretical value. Range [0, +inf].
inMaxIncompletenessSet the maximum number of missing points that will cause the fit to fail. Range [0, 0.999].
inLocalBlindnessParameters used to prevent the detection of weak edges nearby strong edges.
outRidgesArray containing the detected ridges. Each element of the array is a Conditional<Ridge1D>, which is Null if the detection in the respective segment failed.
outDeviationProfileProfile in which each element is the distance of the detected point from the theoretical value.
Returns
The fitted path. The object is Null if the fit fails for any reason.

◆ FitPath() [6/6]

Conditional< Path > oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitPath ( Image inImage,
PathFittingMap inFittingMap,
StripeScanParams inStripeScanParams = null,
Selection inStripeSelection = Selection::Best,
Optional< int > inMaxInterpolationLength = null,
Optional< float > inMaxDeviationDelta = null,
float inMaxIncompleteness = 0::1f,
Optional< LocalBlindness > inLocalBlindness = null,
Optional< Conditional< Path > > outLeftPath = null,
Optional< Conditional< Path > > outRightPath = null,
Optional< Array< Conditional< Stripe1D > > > outStripes = null,
Optional< Conditional< Profile > > outDeviationProfile = null )
inlinestatic

Fits a path using the ridges detected inside the provided scan template.

Parameters
inImageInput image. It cannot be empty.
inFittingMapInput fitting map. The map must be initialized using the buildPathFittingMap() function.
inStripeScanParamsParameters used to control the stripe scanning process.
inStripeSelectionSelect the stripe that will be used for the fit in case more than one are detected on the same fit segment.
inMaxInterpolationLengthMaximum number of consecutive points that is not found during the scanning process.
inMaxDeviationDeltaMaximum allowed deviation between detected points and their theoretical value.
inMaxIncompletenessSet the maximum number of missing points that will cause the fit to fail. Range [0, 0.999].
inLocalBlindnessParameters used to prevent the detection of weak edges nearby strong edges.
outLeftPathPath fitted using the first points of the stripe segment.
outRightPathPath fitted using the second points of the stripe segment.
outStripesArray containing the detected stripes. Each element of the array is a Conditional<Stripe1D>, which is Null if the detection in the respective segment failed.
outDeviationProfileProfile in which each element is the distance of the detected point from the theoretical value.
Returns
The path fitted using the stripe midpoints. The object is Null if the fit fails for any reason.

◆ FitSegment() [1/6]

Conditional< Segment2D > oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitSegment ( Image inImage,
SegmentFittingField inFittingField,
Optional< UCS2D > inFieldAlignment = null,
int inScanCount = 10,
int inScanWidth = 5,
SamplingParams inSamplingParams = null,
EdgeScanParams inEdgeScanParams = null,
Selection inEdgeSelection = Selection::Best,
float inMaxIncompleteness = 0::1f,
Optional< float > inMaxError = null,
Optional< LineMEstimator > inOutlierSuppression = null,
Optional< LocalBlindness > inLocalBlindness = null,
Optional< Array< Conditional< Edge1D > > > outEdges = null,
Optional< Array< Point2D > > outInliers = null,
Optional< float > outError = null,
Optional< Conditional< Profile > > outDeviationProfile = null,
Optional< Array< Segment2D > > outScanSegments = null )
inlinestatic

Fits a segment using the edges detected inside the provided scan template.

Parameters
inImageInput image. It cannot be empty.
inFittingFieldField on which the fitting map is based.
inFieldAlignmentCoordinate system used to align the field before creating the map. If Null, no alignment is performed.
inScanCountNumber of ScanTemplate objects that will be created inside the map. Range [3, +inf].
inScanWidthWidth of a single ScanTemplate object. Range [1, +inf].
inSamplingParamsParameters used for the image sampling process.
inEdgeScanParamsParameters used to control the stripe scanning process.
inEdgeSelectionSelect the stripe that will be used for the fit in case more than one are detected on the same fit segment.
inMaxIncompletenessSet the maximum number of missing points that will cause the fit to fail. Range [0, 0.999].
inMaxErrorMaximum allowed fit error. If the calculated error is higher, the function will return Null.
inOutlierSuppressionSelect the MEstimator used to detect inliers. If Null, no outlier detection is performed.
inLocalBlindnessParameters used to prevent the detection of weak edges nearby strong edges.
outEdgesArray containing the detected edges. Each element of the array is a Conditional<Edge1D>, which is Null if the detection in the respective segment failed.
outInliersArray containing the fit inliers. This output is useful only when an MEstimator is selected.
outErrorRoot-Mean-Square Error (RMSE) of the fit.
outDeviationProfileProfile in which each element is the distance of the detected point from the theoretical value.
outScanSegmentsSegments formed by the starting and ending point of each ScanTemplate of the map.
Returns
The path fitted using the stripe midpoints. The object is Null if the fit fails for any reason.

◆ FitSegment() [2/6]

Conditional< Segment2D > oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitSegment ( Image inImage,
SegmentFittingField inFittingField,
Optional< UCS2D > inFieldAlignment = null,
int inScanCount = 10,
int inScanWidth = 5,
SamplingParams inSamplingParams = null,
RidgeScanParams inRidgeScanParams = null,
Selection inRidgeSelection = Selection::Best,
float inMaxIncompleteness = 0::1f,
Optional< float > inMaxError = null,
Optional< LineMEstimator > inOutlierSuppression = null,
Optional< LocalBlindness > inLocalBlindness = null,
Optional< Array< Conditional< Ridge1D > > > outRidges = null,
Optional< Array< Point2D > > outInliers = null,
Optional< float > outError = null,
Optional< Conditional< Profile > > outDeviationProfile = null,
Optional< Array< Segment2D > > outScanSegments = null )
inlinestatic

Fits a segment using the ridges detected inside the provided scan template.

Parameters
inImageInput image. It cannot be empty.
inFittingFieldField on which the fitting map is based.
inFieldAlignmentCoordinate system used to align the field before creating the map. If Null, no alignment is performed.
inScanCountNumber of ScanTemplate objects that will be created inside the map. Range [3, +inf].
inScanWidthWidth of a single ScanTemplate object. Range [1, +inf].
inSamplingParamsParameters used for the image sampling process.
inRidgeScanParamsParameters used to control the ridge scanning process.
inRidgeSelectionSelect the ridge that will be used for the fit in case more than one are detected on the same fit segment.
inMaxIncompletenessSet the maximum number of missing points that will cause the fit to fail. Range [0, 0.999].
inMaxErrorMaximum allowed fit error. If the calculated error is higher, the function will return Null.
inOutlierSuppressionSelect the MEstimator used to detect inliers. If Null, no outlier detection is performed.
inLocalBlindnessParameters used to prevent the detection of weak edges nearby strong edges.
outRidgesArray containing the detected ridges. Each element of the array is a Conditional<Ridge1D>, which is Null if the detection in the respective segment failed.
outInliersArray containing the fit inliers. This output is useful only when an MEstimator is selected.
outErrorRoot-Mean-Square Error (RMSE) of the fit.
outDeviationProfileProfile in which each element is the distance of the detected point from the theoretical value.
outScanSegmentsSegments formed by the starting and ending point of each ScanTemplate of the map.
Returns
The fitted segment. The object is Null if the fit fails for any reason.

◆ FitSegment() [3/6]

Conditional< Segment2D > oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitSegment ( Image inImage,
SegmentFittingField inFittingField,
Optional< UCS2D > inFieldAlignment = null,
int inScanCount = 10,
int inScanWidth = 5,
SamplingParams inSamplingParams = null,
StripeScanParams inStripeScanParams = null,
Selection inStripeSelection = Selection::Best,
float inMaxIncompleteness = 0::1f,
Optional< float > inMaxError = null,
Optional< LineMEstimator > inOutlierSuppression = null,
Optional< LocalBlindness > inLocalBlindness = null,
Optional< Conditional< Segment2D > > outLeftSegment = null,
Optional< Conditional< Segment2D > > outRightSegment = null,
Optional< Array< Conditional< Stripe1D > > > outStripes = null,
Optional< Array< Point2D > > outStripePoints = null,
Optional< float > outError = null,
Optional< Conditional< Profile > > outDeviationProfile = null,
Optional< Array< Segment2D > > outScanSegments = null )
inlinestatic

Fits a segment using the stripes detected inside the provided scan template.

Parameters
inImageInput image. It cannot be empty.
inFittingFieldField on which the fitting map is based.
inFieldAlignmentCoordinate system used to align the field before creating the map. If Null, no alignment is performed.
inScanCountNumber of ScanTemplate objects that will be created inside the map. Range [3, +inf].
inScanWidthWidth of a single ScanTemplate object. Range [1, +inf].
inSamplingParamsParameters used for the image sampling process.
inStripeScanParamsParameters used to control the stripe scanning process.
inStripeSelectionSelect the stripe that will be used for the fit in case more than one are detected on the same fit segment.
inMaxIncompletenessSet the maximum number of missing points that will cause the fit to fail. Range [0, 0.999].
inMaxErrorMaximum allowed fit error. If the calculated error is higher, the function will return Null.
inOutlierSuppressionSelect the MEstimator used to detect inliers. If Null, no outlier detection is performed.
inLocalBlindnessParameters used to prevent the detection of weak edges nearby strong edges.
outLeftSegmentSegment fitted using the first points of the stripe segment.
outRightSegmentSegment fitted using the second points of the stripe segment.
outStripesArray containing the detected stripes. Each element of the array is a Conditional<Stripe1D>, which is Null if the detection in the respective segment failed.
outStripePointsArray containing the points acquired from each stripe.
outErrorRoot-Mean-Square Error (RMSE) of the fit.
outDeviationProfileProfile in which each element is the distance of the detected point from the theoretical value.
outScanSegmentsSegments formed by the starting and ending point of each ScanTemplate of the map.
Returns
The segment fitted using the stripe midpoints. The object is Null if the fit fails for any reason.

◆ FitSegment() [4/6]

Conditional< Segment2D > oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitSegment ( Image inImage,
SegmentFittingMap inFittingMap,
EdgeScanParams inEdgeScanParams = null,
Selection inEdgeSelection = Selection::Best,
float inMaxIncompleteness = 0::1f,
Optional< float > inMaxError = null,
Optional< LineMEstimator > inOutlierSuppression = null,
Optional< LocalBlindness > inLocalBlindness = null,
Optional< Array< Conditional< Edge1D > > > outEdges = null,
Optional< Array< Point2D > > outInliers = null,
Optional< float > outError = null,
Optional< Conditional< Profile > > outDeviationProfile = null )
inlinestatic

Fits a segment using the edges detected inside the provided scan template.

Parameters
inImageInput image. It cannot be empty.
inFittingMapInput fitting map. The map must be initialized using the buildSegmentFittingMap() function.
inEdgeScanParamsParameters used to control the edge scanning process.
inEdgeSelectionSelect the edge that will be used for the fit in case more than one are detected on the same fit segment.
inMaxIncompletenessSet the maximum number of missing points that will cause the fit to fail. Range [0, 0.999].
inMaxErrorMaximum allowed fit error. If the calculated error is higher, the function will return Null.
inOutlierSuppressionSelect the MEstimator used to detect inliers. If Null, no outlier detection is performed.
inLocalBlindnessParameters used to prevent the detection of weak edges nearby strong edges.
outEdgesArray containing the detected edges. Each element of the array is a Conditional<Edge1D>, which is Null if the detection in the respective segment failed.
outInliersArray containing the fit inliers. This output is useful only when an MEstimator is selected.
outErrorRoot-Mean-Square Error (RMSE) of the fit.
outDeviationProfileProfile in which each element is the distance of the detected point from the theoretical value.
Returns
The fitted segment. The object is Null if the fit fails for any reason.

◆ FitSegment() [5/6]

Conditional< Segment2D > oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitSegment ( Image inImage,
SegmentFittingMap inFittingMap,
RidgeScanParams inRidgeScanParams = null,
Selection inRidgeSelection = Selection::Best,
float inMaxIncompleteness = 0::1f,
Optional< float > inMaxError = null,
Optional< LineMEstimator > inOutlierSuppression = null,
Optional< LocalBlindness > inLocalBlindness = null,
Optional< Array< Conditional< Ridge1D > > > outRidges = null,
Optional< Array< Point2D > > outInliers = null,
Optional< float > outError = null,
Optional< Conditional< Profile > > outDeviationProfile = null )
inlinestatic

Fits a segment using the ridges detected inside the provided scan template.

Parameters
inImageInput image. It cannot be empty.
inFittingMapInput fitting map. The map must be initialized using the buildSegmentFittingMap() function.
inRidgeScanParamsParameters used to control the ridge scanning process.
inRidgeSelectionSelect the ridge that will be used for the fit in case more than one are detected on the same fit segment.
inMaxIncompletenessSet the maximum number of missing points that will cause the fit to fail. Range [0, 0.999].
inMaxErrorMaximum allowed fit error. If the calculated error is higher, the function will return Null.
inOutlierSuppressionSelect the MEstimator used to detect inliers. If Null, no outlier detection is performed.
inLocalBlindnessParameters used to prevent the detection of weak edges nearby strong edges.
outRidgesArray containing the detected ridges. Each element of the array is a Conditional<Ridge1D>, which is Null if the detection in the respective segment failed.
outInliersArray containing the fit inliers. This output is useful only when an MEstimator is selected.
outErrorRoot-Mean-Square Error (RMSE) of the fit.
outDeviationProfileProfile in which each element is the distance of the detected point from the theoretical value.
Returns
The fitted segment. The object is Null if the fit fails for any reason.

◆ FitSegment() [6/6]

Conditional< Segment2D > oevislib_net.ComputerVision.ShapeFitting.ShapeFitting.FitSegment ( Image inImage,
SegmentFittingMap inFittingMap,
StripeScanParams inStripeScanParams = null,
Selection inStripeSelection = Selection::Best,
float inMaxIncompleteness = 0::1f,
Optional< float > inMaxError = null,
Optional< LineMEstimator > inOutlierSuppression = null,
Optional< LocalBlindness > inLocalBlindness = null,
Optional< Conditional< Segment2D > > outLeftSegment = null,
Optional< Conditional< Segment2D > > outRightSegment = null,
Optional< Array< Conditional< Stripe1D > > > outStripes = null,
Optional< Array< Point2D > > outStripePoints = null,
Optional< float > outError = null,
Optional< Conditional< Profile > > outDeviationProfile = null )
inlinestatic

Fits a segment using the stripes detected inside the provided scan template.

Parameters
inImageInput image. It cannot be empty.
inFittingMapInput fitting map. The map must be initialized using the buildSegmentFittingMap() function.
inStripeScanParamsParameters used to control the stripe scanning process.
inStripeSelectionSelect the stripe that will be used for the fit in case more than one are detected on the same fit segment.
inMaxIncompletenessSet the maximum number of missing points that will cause the fit to fail. Range [0, 0.999].
inMaxErrorMaximum allowed fit error. If the calculated error is higher, the function will return Null.
inOutlierSuppressionSelect the MEstimator used to detect inliers. If Null, no outlier detection is performed.
inLocalBlindnessParameters used to prevent the detection of weak edges nearby strong edges.
outLeftSegmentSegment fitted using the first points of the stripe segment.
outRightSegmentSegment fitted using the second points of the stripe segment.
outStripesArray containing the detected stripes. Each element of the array is a Conditional<Stripe1D>, which is Null if the detection in the respective segment failed.
outStripePointsArray containing the points acquired from each stripe.
outErrorRoot-Mean-Square Error (RMSE) of the fit.
outDeviationProfileProfile in which each element is the distance of the detected point from the theoretical value.
Returns
The segment fitted using the stripe midpoints. The object is Null if the fit fails for any reason.