ScanSingleRidge


Locates the strongest dark or bright pixel peak along a given path.

Applications:Very fast detection of a thin structure like a wire or a scale mark.

Syntax

C++
C#
Python
 
def ScanSingleRidge(
	inImage: Image,
	inScanMap: ScanMap,
	inRidgeScanParams: RidgeScanParams,
	inRidgeSelection: Selection,
	/,
	*,
	inLocalBlindness: LocalBlindness | None = None,
	outBrightnessProfile: Profile | None = None,
	outResponseProfile: Profile | None = None
)
-> outRidge: Ridge1D | None

Parameters

Name Type 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 inRidgeSelection Selection Selection mode of the resulting ridge
Input value inLocalBlindness LocalBlindness | None None Defines conditions in which weaker ridges can be detected in the vicinity of stronger ridges
Output value outRidge Ridge1D | None Found ridge
Output value outBrightnessProfile Profile | None None Extracted image profile
Output value outResponseProfile Profile | None None Profile of the ridge operator response