You are here: Start » AVL.NET » AVL.FitCircleToStripe(AvlNet.Image, AvlNet.CircleFittingMap, AvlNet.StripeScanParams, AvlNet.Selection, AvlNet.LocalBlindness, float, AvlNet.CircleFittingMethod, AvlNet.MEstimator?, AvlNet.Circle2D?, AvlNet.Circle2D?, AvlNet.Circle2D?, AvlNet.Stripe1D?[], AvlNet.Point2D[], AvlNet.Profile, AvlNet.Profile[], AvlNet.Profile[])
AVL.FitCircleToStripe(AvlNet.Image, AvlNet.CircleFittingMap, AvlNet.StripeScanParams, AvlNet.Selection, AvlNet.LocalBlindness, float, AvlNet.CircleFittingMethod, AvlNet.MEstimator?, AvlNet.Circle2D?, AvlNet.Circle2D?, AvlNet.Circle2D?, AvlNet.Stripe1D?[], AvlNet.Point2D[], AvlNet.Profile, AvlNet.Profile[], AvlNet.Profile[])
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void FitCircleToStripe( AvlNet.Image inImage, AvlNet.CircleFittingMap inFittingMap, AvlNet.StripeScanParams inStripeScanParams, AvlNet.Selection inStripeSelection, AvlNet.LocalBlindness inLocalBlindness, float inMaxIncompleteness, AvlNet.CircleFittingMethod inFittingMethod, AvlNet.MEstimator? inOutlierSuppression, out AvlNet.Circle2D? outCircle, out AvlNet.Circle2D? outInnerCircle, out AvlNet.Circle2D? outOuterCircle, out AvlNet.Stripe1D?[] outStripes, out AvlNet.Point2D[] outStripePoints, out AvlNet.Profile outDeviationProfile, out AvlNet.Profile[] diagBrightnessProfiles, out AvlNet.Profile[] diagResponseProfiles )
Parameters
- inImage
- Type: AvlNet.Image
- inFittingMap
- Type: AvlNet.CircleFittingMap
- inStripeScanParams
- Type: AvlNet.StripeScanParams
- inStripeSelection
- Type: AvlNet.Selection
- inLocalBlindness
- Type: AvlNet.LocalBlindness
- inMaxIncompleteness
- Type: System.Single
- inFittingMethod
- Type: AvlNet.CircleFittingMethod
- inOutlierSuppression
- Type: System.Nullable<AvlNet.MEstimator>
- outCircle
- Type: System.Nullable<AvlNet.Circle2D>
- outInnerCircle
- Type: System.Nullable<AvlNet.Circle2D>
- outOuterCircle
- Type: System.Nullable<AvlNet.Circle2D>
- outStripes
- Type: System.Nullable<AvlNet.Stripe1D>
- outStripePoints
- Type: AvlNet.Point2D
- outDeviationProfile
- Type: AvlNet.Profile
- diagBrightnessProfiles
- Type: AvlNet.Profile
- diagResponseProfiles
- Type: AvlNet.Profile
Description
The operation tries to fit a given circle 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 circle in the image. Only inMaxIncompleteness fraction of these scans may fail. If the fitting according to the given parameters is not possible, outCircle is set to Nil.
Examples
Fitting a circle to the dark circular stripe of a washer
(inStripeScanParams.Polarity = Dark).
Remarks
For more information about local coordinate systems please refer to the following article.
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.
