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, AvlNet.Region inRoi, AvlNet.Path inPath, float inMinScore, float inEdgeThreshold, out AvlNet.Path[] outPaths, out float[] outScores )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImage | AvlNet.Image | Input image. | ||
![]() | inRoi | AvlNet.Region | Input region of interest. Default value: atl::NIL, or null. | ||
![]() | 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 | AvlNet.Path[] | Output paths. | ||
![]() | outScores | float[] | Output scores. |
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
- DetectPaths(AvlNet.Image, AvlNet.Path, float, float, AvlNet.Path[], float[])
- DetectPaths(AvlNet.Image, AvlNet.Path, float, float, AvlNet.Path[], float[], AvlNet.Image, AvlNet.Image)
- DetectPaths(AvlNet.Image, AvlNet.Region, AvlNet.Path, float, float, AvlNet.Path[], float[], AvlNet.Image, AvlNet.Image)
- Class Reference
- AVL Class