You are here: Start » AVL.NET » AVL.DetectPaths Method

AVL.DetectPaths Method

Finds paths in an image.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void DetectPaths(
	AvlNet.Image inImage,
	AvlNet.Path inPath,
	float inMinScore,
	float inEdgeThreshold,
	out AvlNet.Path[] outPaths,
	out float[] outScores,
	out AvlNet.Image diagGradientMagnitudeImage,
	out AvlNet.Image diagScoreImage
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inPathAvlNet.PathInput path.
inMinScorefloat<0.0f, INF>20.0fMinimum matching score. Default value: 20.0f.
inEdgeThresholdfloat10.0fMinimum accepted edge magnitude. Default value: 10.0f.
outPathsAvlNet.PathOutput paths.
outScoresfloatOutput scores.
diagGradientMagnitudeImageAvlNet.ImageVisualized gradients magnitude of an input image.
diagScoreImageAvlNet.ImageCalculated score for each pixel of an input image.

Description

The operation detects paths in the inImage using the Generalized Hough Transform approach. The output array is ordered from best matching to worst matching results.

Examples

A sample path (scaled for convenience).

DetectPaths performed on the sample images with inMinScore = 0.7.

Remarks

DetectPaths is not scale- or rotation-invariant (slightly scaled or rotated paths are, however, detected properly).

Long inPaths cause long computation time.

Errors

Error type Description
DomainError Degenerate path in DetectPaths.

See also