ProfileRidges
Finds the high or low peaks in the input profile.
Applications:Can be used for 1D ridge detection when the brightness profile is extracted from an image in a non-standard way.
Syntax
C++
C#
Python
def ProfileRidges( inProfile: Profile, /, *, inRange: Range | None = None, inCyclic: bool = False, inRidgeScanParams: RidgeScanParams = RidgeScanParams(ProfileInterpolationMethod.Quadratic4, 0.6, 5, 2, RidgeOperator.Minimum, 5.0, Polarity.Bright), inMinDistance: float = 0.0, inMaxDistance: float | None = None, inLocalBlindness: LocalBlindness | None = None, outResponseProfile: Profile | None = None ) -> ( outRidges: list[ProfileRidge], outDistances: list[float] )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inProfile | Profile | Input profile | ||
![]() |
inRange | Range | None | None | ||
![]() |
inCyclic | bool | False | ||
![]() |
inRidgeScanParams | RidgeScanParams | RidgeScanParams(ProfileInterpolationMethod.Quadratic4, 0.6, 5, 2, RidgeOperator.Minimum, 5.0, Polarity.Bright) | Parameters controlling the ridge extraction process | |
![]() |
inMinDistance | float | 0.0 - ![]() |
0.0 | Minimal distance between consecutive ridges |
![]() |
inMaxDistance | float | None | 0.0 - ![]() |
None | Maximal distance between consecutive ridges |
![]() |
inLocalBlindness | LocalBlindness | None | None | Defines conditions in which weaker ridges can be detected in the vicinity of stronger ridges | |
![]() |
outRidges | list[ProfileRidge] | Found ridges | ||
![]() |
outDistances | list[float] | Output distances between consecutive ridges | ||
![]() |
outResponseProfile | Profile | None | None | Profile of the ridge operator response |



