You are here: Start » AVL.NET » AVS.FitCircleToEdges_Direct Method
AVS.FitCircleToEdges_Direct Method
Performs a series of 1D edge detections and finds a circle that best matches the detected points.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
public static void FitCircleToEdges_Direct ( AvlNet.Image inImage, AvlNet.CircleFittingField inFittingField, AvlNet.CoordinateSystem2D? inFittingFieldAlignment, int inScanCount, int inScanWidth, AvlNet.SamplingParams inSamplingParams, AvlNet.EdgeScanParams inEdgeScanParams, AvlNet.Selection inEdgeSelection, AvlNet.LocalBlindness? inLocalBlindness, float inMaxIncompleteness, AvlNet.CircleFittingMethod inFittingMethod, AvlNet.MEstimator? inOutlierSuppression, out AvlNet.Circle2D? outCircle )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inImage | AvlNet.Image | Image to fit the circle to. | |||
inFittingField | AvlNet.CircleFittingField | Circle fitting field. | |||
inFittingFieldAlignment | AvlNet.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 circle. Default value: 10. | |
inScanWidth | int | <1, INF> | 5 | The width of each scan field (in pixels). Default value: 5. | |
inSamplingParams | AvlNet.SamplingParams | Parameters controlling the sampling process. | |||
inEdgeScanParams | AvlNet.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 | AvlNet.Selection | Selection mode of edges. | |||
inLocalBlindness | AvlNet.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 | AvlNet.CircleFittingMethod | AlgebraicTaubin | Method used to fit a circle. Default value: AlgebraicTaubin. | ||
inOutlierSuppression | AvlNet.MEstimator? | Selects a method for ignoring incorrectly detected points. Default value: atl::NIL. | |||
outCircle | AvlNet.Circle2D? | Fitted circle or nothing if the fitting fails. |
Function Overrides
- FitCircleToEdges_Direct(Image, CircleFittingField, Int32, Int32, SamplingParams, EdgeScanParams, Selection, Single, CircleFittingMethod, Nullable<Circle2D>)
- FitCircleToEdges_Direct(Image, CircleFittingField, Nullable<CoordinateSystem2D>, Int32, Int32, SamplingParams, EdgeScanParams, Selection, Nullable<LocalBlindness>, Single, CircleFittingMethod, Nullable<MEstimator>, Nullable<Circle2D>, NullableRef<List<Nullable<Edge1D>>>, NullableRef<NullableRef<Profile>>, NullableValue<CircleFittingField>, NullableRef<List<Point2D>>, NullableRef<SafeList<Profile>>, NullableRef<SafeList<Profile>>)
- FitCircleToEdges_Direct(Image, CircleFittingField, Nullable<CoordinateSystem2D>, Int32, Int32, SamplingParams, EdgeScanParams, Selection, Nullable<LocalBlindness>, Single, CircleFittingMethod, Nullable<MEstimator>, Nullable<Circle2D>, IList<Nullable<Edge1D>>, INullable<Profile>, CircleFittingField, IList<Point2D>, IList<Profile>, IList<Profile>, IList<Segment2D>, IList<Rectangle2D>)
- FitCircleToEdges_Direct(Image, CircleFittingField, Nullable<CoordinateSystem2D>, Int32, Int32, SamplingParams, EdgeScanParams, Selection, Nullable<LocalBlindness>, Single, CircleFittingMethod, Nullable<MEstimator>, Nullable<Circle2D>, NullableRef<List<Nullable<Edge1D>>>, NullableRef<NullableRef<Profile>>, NullableValue<CircleFittingField>, NullableRef<List<Point2D>>, NullableRef<SafeList<Profile>>, NullableRef<SafeList<Profile>>, IList<Segment2D>, IList<Rectangle2D>)