DetectRidges_AsRegion
Extracts a pixel-precise region of bright or dark thin lines.
Applications:Consistent detection of thin structures like scratches, cracks or lines.
Syntax
C++
C#
Python
def DetectRidges_AsRegion( inImage: Image, outRidgeRegion: Region, /, *, inRoi: Region | None = None, inStdDevX: float = 3.0, inStdDevY: float | None = None, inRidgeThreshold: float = 5.0, inRidgeHysteresis: float = 4.0, inPolarity: Polarity = Polarity.Bright, inMinBlobArea: int = 1 ) -> None
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inImage | Image | Input image | ||
![]() |
inRoi | Region | None | None | Region of interest | |
![]() |
inStdDevX | float | 0.0 - ![]() |
3.0 | Smoothing standard deviation (horizontal) |
![]() |
inStdDevY | float | None | 0.0 - ![]() |
None | Smoothing standard deviation (vertical, or Auto = horizontal) |
![]() |
inRidgeThreshold | float | 0.0 - ![]() |
5.0 | Sufficient ridge strength; ridges of that strength will always be detected |
![]() |
inRidgeHysteresis | float | 0.0 - ![]() |
4.0 | Value by which the ridge threshold is decreased for ridge points neighboring with sufficiently strong edges |
![]() |
inPolarity | Polarity | Polarity.Bright | ||
![]() |
inMinBlobArea | int | 0 - ![]() |
1 | Minimal area of a ridge blob |
![]() |
outRidgeRegion | Region |
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.



