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
Input value inImage Image Input image
Input value inRoi Region | None None Region of interest
Input value inStdDevX float 0.0 - 3.0 Smoothing standard deviation (horizontal)
Input value inStdDevY float | None 0.0 - None Smoothing standard deviation (vertical, or Auto = horizontal)
Input value inRidgeThreshold float 0.0 - 5.0 Sufficient ridge strength; ridges of that strength will always be detected
Input value inRidgeHysteresis float 0.0 - 4.0 Value by which the ridge threshold is decreased for ridge points neighboring with sufficiently strong edges
Input value inPolarity Polarity Polarity.Bright
Input value inMinBlobArea int 0 - 1 Minimal area of a ridge blob
Output value outRidgeRegion Region

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.