You are here: Start » FIL.NET » FIL.FitArcToStripe
Performs a series of 1D stripe detections and finds an arc that best matches the detected points.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
public static void FitArcToStripe ( FilNet.Image inImage, FilNet.ArcFittingMap inFittingMap, FilNet.StripeScanParams inStripeScanParams, FilNet.Selection inStripeSelection, FilNet.LocalBlindness? inLocalBlindness, float inMaxIncompleteness, FilNet.CircleFittingMethod inFittingMethod, FilNet.MEstimator? inOutlierSuppression, out FilNet.Arc2D? outArc, out FilNet.Arc2D? outInnerArc, out FilNet.Arc2D? outOuterArc, IList<NullableRef<FilNet.Stripe1D>> outStripes, IList<FilNet.Point2D> outStripePoints, INullable<FilNet.Profile> outDeviationProfile, IList<FilNet.Profile> diagBrightnessProfiles, IList<FilNet.Profile> diagResponseProfiles )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImage | FilNet.Image | Input image to fit arc to. | ||
![]() | inFittingMap | FilNet.ArcFittingMap | Input fitting map. | ||
![]() | inStripeScanParams | FilNet.StripeScanParams | Parameters controlling the stripe extraction process. | ||
![]() | inStripeSelection | FilNet.Selection | fil::Selection::Best | Selection mode of stripe. Default value: fil::Selection::Best. | |
![]() | inLocalBlindness | FilNet.LocalBlindness? | Defines conditions in which weaker edges can be detected in the vicinity of stronger edges. Default value: ftl::NIL. | ||
![]() | inMaxIncompleteness | float | <0.0f, 0.999f> | 0.1f | Maximal fraction of stripe points not found. Default value: 0.1f. |
![]() | inFittingMethod | FilNet.CircleFittingMethod | AlgebraicTaubin | Method used to fit an arc. Default value: AlgebraicTaubin. | |
![]() | inOutlierSuppression | FilNet.MEstimator? | Selects a method for ignoring incorrectly detected points. Default value: ftl::NIL. | ||
![]() | outArc | FilNet.Arc2D? | Fitted arc in the middle of found stripe. | ||
![]() | outInnerArc | FilNet.Arc2D? | Fitted inner arc. | ||
![]() | outOuterArc | FilNet.Arc2D? | Fitted outer arc. | ||
![]() | outStripes | System.Collections.Generic.IList<FilNet.NullableRef<FilNet.Stripe1D>> | Found stripes. | ||
![]() | outStripePoints | System.Collections.Generic.IList<FilNet.Point2D> | Extracted points of middle arc of an image stripe. | ||
![]() | outDeviationProfile | FilNet.INullable<FilNet.Profile> | Profile of distances between the actual arc points and the corresponding reference arc points. This parameter cannot be null. | ||
![]() | diagBrightnessProfiles | System.Collections.Generic.IList<FilNet.Profile> | Extracted image profiles. | ||
![]() | diagResponseProfiles | System.Collections.Generic.IList<FilNet.Profile> | Profiles of the edge (derivative) operator response. |
Description
The operation tries to fit a given arc to stripe present in the inImage image. Internally, it performs a series of scans with the ScanSingleStripe filter using inFittingMap previously generated from the object being fitted. The found points are then used to determine the actual position of the arc in the image. Only inMaxIncompleteness fraction of these scans may fail. If the fitting according to the given parameters is not possible, outArc is set to Nil.
Examples

Fitting an arc to the dark stripe formed on one side of a hole
(inStripeScanParams.Polarity = Dark).
Remarks
Read more about Local Coordinate Systems in Machine Vision Guide: Local Coordinate Systems.
This filter is a part of the Shape Fitting toolset. To read more about this technique, one can refer to the Shape Fitting chapter of our Machine Vision Guide
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.
Hardware acceleration settings may be manipulated with Settings class.
Function Overrides
- FitArcToStripe(Image, ArcFittingMap, StripeScanParams, Selection, Single, CircleFittingMethod, Nullable<Arc2D>, Nullable<Arc2D>, Nullable<Arc2D>)
- FitArcToStripe(Image, ArcFittingMap, StripeScanParams, Selection, Single, CircleFittingMethod, Nullable<Arc2D>, Nullable<Arc2D>, Nullable<Arc2D>, IList<Profile>, IList<Profile>)
- FitArcToStripe(Image, ArcFittingMap, StripeScanParams, Selection, Nullable<LocalBlindness>, Single, CircleFittingMethod, Nullable<MEstimator>, Nullable<Arc2D>, Nullable<Arc2D>, Nullable<Arc2D>)
- FitArcToStripe(Image, ArcFittingMap, StripeScanParams, Selection, Single, CircleFittingMethod, Nullable<Arc2D>, Nullable<Arc2D>, Nullable<Arc2D>, NullableRef<List<NullableRef<Stripe1D>>>, NullableRef<List<Point2D>>, NullableRef<NullableRef<Profile>>)
- FitArcToStripe(Image, ArcFittingMap, StripeScanParams, Selection, Nullable<LocalBlindness>, Single, CircleFittingMethod, Nullable<MEstimator>, Nullable<Arc2D>, Nullable<Arc2D>, Nullable<Arc2D>, IList<Profile>, IList<Profile>)
- FitArcToStripe(Image, ArcFittingMap, StripeScanParams, Selection, Single, CircleFittingMethod, Nullable<Arc2D>, Nullable<Arc2D>, Nullable<Arc2D>, NullableRef<List<NullableRef<Stripe1D>>>, NullableRef<List<Point2D>>, NullableRef<NullableRef<Profile>>, IList<Profile>, IList<Profile>)
- FitArcToStripe(Image, ArcFittingMap, StripeScanParams, Selection, Nullable<LocalBlindness>, Single, CircleFittingMethod, Nullable<MEstimator>, Nullable<Arc2D>, Nullable<Arc2D>, Nullable<Arc2D>, NullableRef<List<NullableRef<Stripe1D>>>, NullableRef<List<Point2D>>, NullableRef<NullableRef<Profile>>)
- FitArcToStripe(Image, ArcFittingMap, StripeScanParams, Selection, Nullable<LocalBlindness>, Single, CircleFittingMethod, Nullable<MEstimator>, Nullable<Arc2D>, Nullable<Arc2D>, Nullable<Arc2D>, NullableRef<List<NullableRef<Stripe1D>>>, NullableRef<List<Point2D>>, NullableRef<NullableRef<Profile>>, IList<Profile>, IList<Profile>)