You are here: Start » AVL.NET » AVS.AvsFilter_FitCircleToEdges Method
AVS.AvsFilter_FitCircleToEdges 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 AvsFilter_FitCircleToEdges ( AvlNet.CircleFittingState ioState, AvlNet.Image inImage, AvlNet.CircleFittingField inFittingField, int inScanCount, int inScanWidth, AvlNet.InterpolationMethod inImageInterpolation, AvlNet.EdgeScanParams inEdgeScanParams, AvlNet.Selection inEdgeSelection, float inMaxIncompleteness, AvlNet.CircleFittingMethod inFittingMethod, out AvlNet.Circle2D? outCircle, NullableRef<List<AvlNet.Edge1D?>> outEdges, NullableRef<NullableRef<AvlNet.Profile>> outDeviationProfile, NullableValue<AvlNet.CircleFittingField> outAlignedFittingField, NullableRef<List<AvlNet.Point2D>> outInliers )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
ioState | AvlNet.CircleFittingState | ||||
inImage | AvlNet.Image | Image to fit the circle to. | |||
inFittingField | AvlNet.CircleFittingField | Circle fitting field. | |||
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. | |
inImageInterpolation | AvlNet.InterpolationMethod | Bilinear | Interpolation method used for extraction of image pixel values. Default value: Bilinear. | ||
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. | |||
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. | ||
outCircle | AvlNet.Circle2D? | Fitted circle or nothing if the fitting fails. | |||
outEdges | AvlNet.NullableRef<System.Collections.Generic.List<AvlNet.Edge1D?>> | Found edges. Can be null to skip this parameter calculation. | |||
outDeviationProfile | AvlNet.NullableRef<AvlNet.NullableRef<AvlNet.Profile>> | Profile of distances between the actual circle points and the corresponding reference circle points. Can be null to skip this parameter calculation. | |||
outAlignedFittingField | AvlNet.NullableValue<AvlNet.CircleFittingField> | Fitting field used; in the image coordinate system. Can be null to skip this parameter calculation. | |||
outInliers | AvlNet.NullableRef<System.Collections.Generic.List<AvlNet.Point2D>> | Points matching the fitting Circle. Can be null to skip this parameter calculation. |
Function Overrides
- AvsFilter_FitCircleToEdges(CircleFittingState, Image, CircleFittingField, Int32, Int32, InterpolationMethod, EdgeScanParams, Selection, Single, CircleFittingMethod, Nullable<Circle2D>)
- AvsFilter_FitCircleToEdges(CircleFittingState, Image, CircleFittingField, Nullable<CoordinateSystem2D>, Int32, Int32, InterpolationMethod, EdgeScanParams, Selection, Nullable<LocalBlindness>, Single, CircleFittingMethod, Nullable<MEstimator>, Nullable<Circle2D>)
- AvsFilter_FitCircleToEdges(CircleFittingState, Image, CircleFittingField, Int32, Int32, InterpolationMethod, EdgeScanParams, Selection, Single, CircleFittingMethod, Nullable<Circle2D>, IList<Segment2D>, IList<Rectangle2D>, IList<Profile>, IList<Profile>)
- AvsFilter_FitCircleToEdges(CircleFittingState, Image, CircleFittingField, Nullable<CoordinateSystem2D>, Int32, Int32, InterpolationMethod, EdgeScanParams, Selection, Nullable<LocalBlindness>, Single, CircleFittingMethod, Nullable<MEstimator>, Nullable<Circle2D>, IList<Segment2D>, IList<Rectangle2D>, IList<Profile>, IList<Profile>)
- AvsFilter_FitCircleToEdges(CircleFittingState, Image, CircleFittingField, Nullable<CoordinateSystem2D>, Int32, Int32, InterpolationMethod, EdgeScanParams, Selection, Nullable<LocalBlindness>, Single, CircleFittingMethod, Nullable<MEstimator>, Nullable<Circle2D>, NullableRef<List<Nullable<Edge1D>>>, NullableRef<NullableRef<Profile>>, NullableValue<CircleFittingField>, NullableRef<List<Point2D>>)
- AvsFilter_FitCircleToEdges(CircleFittingState, Image, CircleFittingField, Int32, Int32, InterpolationMethod, EdgeScanParams, Selection, Single, CircleFittingMethod, Nullable<Circle2D>, NullableRef<List<Nullable<Edge1D>>>, NullableRef<NullableRef<Profile>>, NullableValue<CircleFittingField>, NullableRef<List<Point2D>>, IList<Segment2D>, IList<Rectangle2D>, IList<Profile>, IList<Profile>)
- AvsFilter_FitCircleToEdges(CircleFittingState, Image, CircleFittingField, Nullable<CoordinateSystem2D>, Int32, Int32, InterpolationMethod, EdgeScanParams, Selection, Nullable<LocalBlindness>, Single, CircleFittingMethod, Nullable<MEstimator>, Nullable<Circle2D>, IList<Nullable<Edge1D>>, INullable<Profile>, CircleFittingField, IList<Point2D>, IList<Segment2D>, IList<Rectangle2D>, IList<Profile>, IList<Profile>)
- AvsFilter_FitCircleToEdges(CircleFittingState, Image, CircleFittingField, Nullable<CoordinateSystem2D>, Int32, Int32, InterpolationMethod, EdgeScanParams, Selection, Nullable<LocalBlindness>, Single, CircleFittingMethod, Nullable<MEstimator>, Nullable<Circle2D>, NullableRef<List<Nullable<Edge1D>>>, NullableRef<NullableRef<Profile>>, NullableValue<CircleFittingField>, NullableRef<List<Point2D>>, IList<Segment2D>, IList<Rectangle2D>, IList<Profile>, IList<Profile>)