DetectPaths


Finds a specified shape in an image using Hough Transform.

Applications:This is an old algorithm for template matching. Quite slow.

Syntax

C++
C#
Python
 
def DetectPaths(
	inImage: Image,
	inPath: Path,
	/,
	*,
	inRoi: Region | None = None,
	inMinScore: float = 20.0,
	inEdgeThreshold: float = 10.0,
	diagGradientMagnitudeImage: Image | None = None,
	diagScoreImage: Image | None = None
)
-> (
	outPaths: list[Path],
	outScores: list[float]
)

Parameters

Name Type Range Default Description
Input value inImage Image Input image
Input value inRoi Region | None None Input region of interest
Input value inPath Path Input path
Input value inMinScore float 0.0 - 20.0 Minimum matching score
Input value inEdgeThreshold float 10.0 Minimum accepted edge magnitude
Output value outPaths list[Path] Output paths
Output value outScores list[float] Output scores
Diagnostic input diagGradientMagnitudeImage Image | None None Visualized gradients magnitude of an input image
Diagnostic input diagScoreImage Image | None None Calculated score for each pixel of an input image