ScanMultipleRidges


Locates multiple dark or bright pixel peaks along a given path.

Applications:Very fast detection of multiple thin structures like wires or scale marks - usually for counting or distance measurements.

Syntax

C++
C#
Python
 
def ScanMultipleRidges(
	inImage: Image,
	inScanMap: ScanMap,
	inRidgeScanParams: RidgeScanParams,
	inMinDistance: float,
	/,
	*,
	inMaxDistance: float | None = None,
	inLocalBlindness: LocalBlindness | None = None,
	outBrightnessProfile: Profile | None = None,
	outResponseProfile: Profile | None = None
)
-> (
	outRidges: list[Ridge1D],
	outGaps: list[Gap1D]
)

Parameters

Name Type Range Default Description
Input value inImage Image Input image
Input value inScanMap ScanMap Data precomputed with CreateScanMap
Input value inRidgeScanParams RidgeScanParams Parameters controlling the ridge extraction process
Input value inMinDistance float 0.0 - Minimal distance between consecutive ridges
Input value inMaxDistance float | None 0.0 - None Maximal distance between consecutive ridges
Input value inLocalBlindness LocalBlindness | None None Defines conditions in which weaker ridges can be detected in the vicinity of stronger ridges
Output value outRidges list[Ridge1D] Found ridges
Output value outGaps list[Gap1D] Gaps between consecutive ridges
Output value outBrightnessProfile Profile | None None Extracted image profile
Output value outResponseProfile Profile | None None Profile of the ridge operator response