FitArcToStripe
Performs a series of 1D stripe detections and finds an arc that best matches the detected points.
Applications:Precise detection of a ring section, whose rough location is known beforehand.
Syntax
C++
C#
Python
def FitArcToStripe( inImage: Image, inFittingMap: ArcFittingMap, inStripeScanParams: StripeScanParams, inStripeSelection: Selection, inMaxIncompleteness: float, inFittingMethod: CircleFittingMethod, /, *, inLocalBlindness: LocalBlindness | None = None, inOutlierSuppression: MEstimator | None = None ) -> ( outArc: Arc2D | None, outInnerArc: Arc2D | None, outOuterArc: Arc2D | None, outStripes: list[Stripe1D | None], outStripePoints: list[Point2D], outDeviationProfile: Profile | None, outBrightnessProfiles: list[Profile], outResponseProfiles: list[Profile] )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inImage | Image | Input image to fit arc to | ||
![]() |
inFittingMap | ArcFittingMap | Input fitting map | ||
![]() |
inStripeScanParams | StripeScanParams | Parameters controlling the stripe extraction process | ||
![]() |
inStripeSelection | Selection | Selection mode of stripe | ||
![]() |
inLocalBlindness | LocalBlindness | None | None | Defines conditions in which weaker edges can be detected in the vicinity of stronger edges | |
![]() |
inMaxIncompleteness | float | 0.0 - 0.999 | Maximal fraction of stripe points not found | |
![]() |
inFittingMethod | CircleFittingMethod | Method used to fit an arc | ||
![]() |
inOutlierSuppression | MEstimator | None | None | Selects a method for ignoring incorrectly detected points | |
![]() |
outArc | Arc2D | None | Fitted arc in the middle of found stripe | ||
![]() |
outInnerArc | Arc2D | None | Fitted inner arc | ||
![]() |
outOuterArc | Arc2D | None | Fitted outer arc | ||
![]() |
outStripes | list[Stripe1D | None] | Found stripes | ||
![]() |
outStripePoints | list[Point2D] | Extracted points of middle arc of an image stripe | ||
![]() |
outDeviationProfile | Profile | None | Profile of distances between the actual arc points and the corresponding reference arc points | ||
![]() |
outBrightnessProfiles | list[Profile] | Extracted image profiles | ||
![]() |
outResponseProfiles | list[Profile] | Profiles of the edge (derivative) operator response |
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.


