FitPathToRidges
Performs a series of 1D ridge detections and creates a path from the detected points.
Applications:Tracing of a thin line, whose rough location and shape is known beforehand.
Syntax
C++
C#
Python
def FitPathToRidges( inImage: Image, inFittingMap: PathFittingMap, inRidgeScanParams: RidgeScanParams, inRidgeSelection: Selection, inMaxIncompleteness: float, /, *, inLocalBlindness: LocalBlindness | None = None, inMaxInterpolationLength: int | None = None, inMaxDeviationDelta: float | None = None ) -> ( outPath: Path | None, outRidges: list[Ridge1D | None], outDeviationProfile: Profile | None, outBrightnessProfiles: list[Profile], outResponseProfiles: list[Profile] )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inImage | Image | Image to fit the path to | ||
![]() |
inFittingMap | PathFittingMap | 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 | |
![]() |
inMaxInterpolationLength | int | None | 0 - ![]() |
None | Maximal number of consecutive points not found |
![]() |
inMaxDeviationDelta | float | None | 0.0 - ![]() |
None | Maximal difference between deviations of consecutive path points |
![]() |
inMaxIncompleteness | float | 0.0 - 0.999 | Maximal fraction of ridge points not found | |
![]() |
outPath | Path | None | Fitted path or nothing if the fitting failed | ||
![]() |
outRidges | list[Ridge1D | None] | Found ridges | ||
![]() |
outDeviationProfile | Profile | None | Profile of distances between the actual path points and the corresponding reference path points | ||
![]() |
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.



