You are here: Start » AVL.NET » Invoke.FitArcToEdges_Direct
Performs a series of 1D edge detections and finds an arc that best matches the detected points.
Namespace: | Avl |
---|---|
Assembly: | AvlNet.dll |
Syntax
C++
C#
public static void FitArcToEdges_Direct ( Avl.Image inImage, Avl.ArcFittingField inFittingField, Optional<Avl.CoordinateSystem2D> inFittingFieldAlignment, int inScanCount, int inScanWidth, Avl.SamplingParams inSamplingParams, Avl.EdgeScanParams inEdgeScanParams, Avl.Selection inEdgeSelection, Optional<Avl.LocalBlindness> inLocalBlindness, float inMaxIncompleteness, Avl.CircleFittingMethod inFittingMethod, Optional<Avl.MEstimator> inOutlierSuppression, Conditional<Avl.Arc2D> outArc, Optional<List<Conditional<Avl.Edge1D>>> outEdges, Optional<Conditional<Avl.Profile>> outDeviationProfile, Optional<Avl.ArcFittingField> outAlignedFittingField, Optional<List<Avl.Point2D>> outInliers, Optional<List<Avl.Profile>> outBrightnessProfiles, Optional<List<Avl.Profile>> outResponseProfiles, Diagnostic<List<Avl.Segment2D>> diagScanSegments, Diagnostic<List<Avl.Rectangle2D>> diagSamplingAreas )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImage | Avl.Image | Input image to fit arc to. | ||
![]() | inFittingField | Avl.ArcFittingField | Arc fitting field. | ||
![]() | inFittingFieldAlignment | Atl.Optional<Avl.CoordinateSystem2D> | Adjusts the fitting field to the position of the inspected object. Default value: atl::NIL. | ||
![]() | inScanCount | int | <3, INF> | 10 | The number of points that will be searched to estimate the position of the arc. Default value: 10. |
![]() | inScanWidth | int | <1, INF> | 5 | The width of each scan field (in pixels). Default value: 5. |
![]() | inSamplingParams | Avl.SamplingParams | Parameters controlling the sampling process. | ||
![]() | inEdgeScanParams | Avl.EdgeScanParams | EdgeScanParams ( ProfileInterpolation: Quadratic4 SmoothingStdDev: 1.0f MinMagnitude: 5.0f EdgeTransition: BrightToDark ) | Parameters controlling the edge extraction process. Default value: EdgeScanParams ( ProfileInterpolation: Quadratic4 SmoothingStdDev: 1.0f MinMagnitude: 5.0f EdgeTransition: BrightToDark ). | |
![]() | inEdgeSelection | Avl.Selection | Selection mode of edges. | ||
![]() | inLocalBlindness | Atl.Optional<Avl.LocalBlindness> | Defines conditions in which weaker edges can be detected in the vicinity of stronger edges. Default value: atl::NIL. | ||
![]() | inMaxIncompleteness | float | <0.0f, 0.999f> | 0.1f | Maximal fraction of edge points not found. Default value: 0.1f. |
![]() | inFittingMethod | Avl.CircleFittingMethod | AlgebraicTaubin | Method used to fit an arc. Default value: AlgebraicTaubin. | |
![]() | inOutlierSuppression | Atl.Optional<Avl.MEstimator> | Selects a method for ignoring incorrectly detected points. Default value: atl::NIL. | ||
![]() | outArc | Atl.Conditional<Avl.Arc2D> | Fitted arc or nothing if the fitting fails. | ||
![]() | outEdges | Atl.Optional<System.Collections.Generic.List<Atl.Conditional<Avl.Edge1D>>> | Found edges. | ||
![]() | outDeviationProfile | Atl.Optional<Atl.Conditional<Avl.Profile>> | Profile of distances between the actual arc points and the corresponding reference arc points. | ||
![]() | outAlignedFittingField | Atl.Optional<Avl.ArcFittingField> | Fitting field used; in the image coordinate system. | ||
![]() | outInliers | Atl.Optional<System.Collections.Generic.List<Avl.Point2D>> | Points matching the fitting arc. | ||
![]() | outBrightnessProfiles | Atl.Optional<System.Collections.Generic.List<Avl.Profile>> | Extracted image profiles. | ||
![]() | outResponseProfiles | Atl.Optional<System.Collections.Generic.List<Avl.Profile>> | Profiles of the edge (derivative) operator response. | ||
![]() | diagScanSegments | Avl.Diagnostic<System.Collections.Generic.List<Avl.Segment2D>> | Segments along which the scans were run. | ||
![]() | diagSamplingAreas | Avl.Diagnostic<System.Collections.Generic.List<Avl.Rectangle2D>> | Areas from which the input image is sampled. |