You are here: Start » AVL.NET » AVL.DetectPaths
Finds paths in an image.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void DetectPaths ( AvlNet.Image inImage, NullableRef<AvlNet.Region> inRoi, AvlNet.Path inPath, float inMinScore, float inEdgeThreshold, IList<AvlNet.Path> outPaths, IList<float> outScores, AvlNet.Image diagGradientMagnitudeImage, AvlNet.Image diagScoreImage )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inImage | AvlNet.Image | Input image. | |||
inRoi | AvlNet.NullableRef<AvlNet.Region> | Input region of interest. Default value: atl::NIL. | |||
inPath | AvlNet.Path | Input path. | |||
inMinScore | float | <0.0f, INF> | 20.0f | Minimum matching score. Default value: 20.0f. | |
inEdgeThreshold | float | 10.0f | Minimum accepted edge magnitude. Default value: 10.0f. | ||
outPaths | System.Collections.Generic.IList<AvlNet.Path> | Output paths. | |||
outScores | System.Collections.Generic.IList<float> | Output scores. | |||
diagGradientMagnitudeImage | AvlNet.Image | Visualized gradients magnitude of an input image. | |||
diagScoreImage | AvlNet.Image | Calculated 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
Remarks
DetectPaths is not scale- or rotation-invariant (slightly scaled or rotated paths are, however, detected properly).
Long inPaths cause long computation time.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Degenerate path in DetectPaths. |
Function Overrides
- DetectPaths(Image, Path, Single, Single, IList<Path>, IList<Single>)
- DetectPaths(Image, NullableRef<Region>, Path, Single, Single, IList<Path>, IList<Single>)
- DetectPaths(Image, Path, Single, Single, IList<Path>, IList<Single>, Image, Image)