FitArcToRidges
Performs a series of 1D ridge detections and finds an arc that best matches the detected points.
Applications:Precise detection of a thin arciform line, whose rough location is known beforehand.
Syntax
C++
C#
Python
def FitArcToRidges( inImage: Image, inFittingMap: ArcFittingMap, inRidgeScanParams: RidgeScanParams, inRidgeSelection: Selection, inMaxIncompleteness: float, inFittingMethod: CircleFittingMethod, /, *, inLocalBlindness: LocalBlindness | None = None, inOutlierSuppression: MEstimator | None = None ) -> ( outArc: Arc2D | None, outRidges: list[Ridge1D | None], outDeviationProfile: Profile | None, outInliers: list[Point2D], 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 | ||
![]() |
inRidgeScanParams | RidgeScanParams | Parameters controlling the ridge extraction process | ||
![]() |
inRidgeSelection | Selection | Selection mode of ridges | ||
![]() |
inLocalBlindness | LocalBlindness | None | None | Defines conditions in which weaker ridges can be detected in the vicinity of stronger ridges | |
![]() |
inMaxIncompleteness | float | 0.0 - 0.999 | Maximal fraction of ridge 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 or nothing if the fitting fails | ||
![]() |
outRidges | list[Ridge1D | None] | Found ridges | ||
![]() |
outDeviationProfile | Profile | None | Profile of distances between the actual arc points and the corresponding reference arc points | ||
![]() |
outInliers | list[Point2D] | Points matching the fitting Arc | ||
![]() |
outBrightnessProfiles | list[Profile] | Extracted image profiles | ||
![]() |
outResponseProfiles | list[Profile] | Profiles of the ridge operator response |
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.


