You are here: Start » FIL.NET » Function Reference » Computer Vision » Shape Fitting » FIL.FitCircleToRidges
Performs a series of 1D ridge detections and finds a circle that best matches the detected points.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
public static void FitCircleToRidges ( FilNet.Image inImage, FilNet.CircleFittingMap inFittingMap, FilNet.RidgeScanParams inRidgeScanParams, FilNet.Selection inRidgeSelection, FilNet.LocalBlindness? inLocalBlindness, float inMaxIncompleteness, FilNet.CircleFittingMethod inFittingMethod, FilNet.MEstimator? inOutlierSuppression, out FilNet.Circle2D? outCircle, NullableRef<List<FilNet.Ridge1D?>> outRidges, NullableRef<NullableRef<FilNet.Profile>> outDeviationProfile, NullableRef<List<FilNet.Point2D>> outInliers, NullableRef<SafeList<FilNet.Profile>> outBrightnessProfiles, NullableRef<SafeList<FilNet.Profile>> outResponseProfiles )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImage | FilNet.Image | Image to fit the circle to. | ||
![]() | inFittingMap | FilNet.CircleFittingMap | Input fitting map. | ||
![]() | inRidgeScanParams | FilNet.RidgeScanParams | Parameters controlling the ridge extraction process. | ||
![]() | inRidgeSelection | FilNet.Selection | fil::Selection::Best | Selection mode of ridges. Default value: fil::Selection::Best. | |
![]() | inLocalBlindness | FilNet.LocalBlindness? | Defines conditions in which weaker ridges can be detected in the vicinity of stronger ridges. Default value: ftl::NIL. | ||
![]() | inMaxIncompleteness | float | <0.0f, 0.999f> | 0.1f | Maximal fraction of ridge points not found. Default value: 0.1f. |
![]() | inFittingMethod | FilNet.CircleFittingMethod | AlgebraicTaubin | Method used to fit a circle. Default value: AlgebraicTaubin. | |
![]() | inOutlierSuppression | FilNet.MEstimator? | Selects a method for ignoring incorrectly detected points. Default value: ftl::NIL. | ||
![]() | outCircle | FilNet.Circle2D? | Fitted circle or nothing if the fitting fails. | ||
![]() | outRidges | FilNet.NullableRef<System.Collections.Generic.List<FilNet.Ridge1D?>> | Found ridges. Can be null to skip this parameter calculation. | ||
![]() | outDeviationProfile | FilNet.NullableRef<FilNet.NullableRef<FilNet.Profile>> | Profile of distances between the actual circle points and the corresponding reference circle points. Can be null to skip this parameter calculation. | ||
![]() | outInliers | FilNet.NullableRef<System.Collections.Generic.List<FilNet.Point2D>> | Points matching the fitting Circle. Can be null to skip this parameter calculation. | ||
![]() | outBrightnessProfiles | FilNet.NullableRef<FilNet.SafeList<FilNet.Profile>> | Extracted image profiles. Can be null to skip this parameter calculation. | ||
![]() | outResponseProfiles | FilNet.NullableRef<FilNet.SafeList<FilNet.Profile>> | Profiles of the ridge operator response. Can be null to skip this parameter calculation. |
Description
The operation tries to fit a given circle to ridges present in the inImage image. Internally, it performs a series of scans with the ScanSingleRidge 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 a wall of a plastic capsule
(inRidgeScanParams.Polarity = Dark, inRidgeScanParams.RidgeWidth = 3).
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
- FitCircleToRidges(Image, CircleFittingMap, RidgeScanParams, Selection, Single, CircleFittingMethod, Nullable<Circle2D>)
- FitCircleToRidges(Image, CircleFittingMap, RidgeScanParams, Selection, Nullable<LocalBlindness>, Single, CircleFittingMethod, Nullable<MEstimator>, Nullable<Circle2D>)
- FitCircleToRidges(Image, CircleFittingMap, RidgeScanParams, Selection, Nullable<LocalBlindness>, Single, CircleFittingMethod, Nullable<MEstimator>, Nullable<Circle2D>, IList<Nullable<Ridge1D>>, INullable<Profile>, IList<Point2D>, IList<Profile>, IList<Profile>)