You are here: Start » AVL.NET » AVS.LocateSinglePointPattern Method
AVS.LocateSinglePointPattern Method
Finds an occurrence of the pattern in the input points.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
public static void LocateSinglePointPattern ( IList<AvlNet.Point2D> inPoints, NullableRef<IList<int>> inPointLabels, IList<AvlNet.Point2D> inPattern, NullableRef<IList<int>> inPatternLabels, AvlNet.Rectangle2D? inReferenceFrame, bool inAllowRotation, float inMinAngle, float inMaxAngle, bool inAllowScale, float inMinScale, float inMaxScale, float inTilingFactor, float inMinInitialScore, float inMaxDeviation, float inMinScore, out AvlNet.Rectangle2D? outObject, INullable<List<AvlNet.Point2D>> outAlignedPattern, out AvlNet.CoordinateSystem2D? outAlignment, INullable<List<AvlNet.Segment2D>> outPatternSkeleton )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPoints | System.Collections.Generic.IList<AvlNet.Point2D> | Input points. | |||
inPointLabels | AvlNet.NullableRef<System.Collections.Generic.IList<int>> | Categories that the input points belong to. Default value: atl::NIL. | |||
inPattern | System.Collections.Generic.IList<AvlNet.Point2D> | Point pattern to be found. | |||
inPatternLabels | AvlNet.NullableRef<System.Collections.Generic.IList<int>> | Categories that the pattern points belong to. Default value: atl::NIL. | |||
inReferenceFrame | AvlNet.Rectangle2D? | Exact position of the model object associated with the pattern in the image. Default value: atl::NIL. | |||
inAllowRotation | bool | True | Flag indicating whether rotation is allowed as a part of output alignment. Default value: True. | ||
inMinAngle | float | -180.0f | Start of range of possible rotations. Default value: -180.0f. | ||
inMaxAngle | float | 180.0f | End of range of possible rotations. Default value: 180.0f. | ||
inAllowScale | bool | False | Flag indicating whether scale is allowed as a part of output alignment. Default value: False. | ||
inMinScale | float | <0.0f, INF> | 0.8f | Start of range of possible scales. Default value: 0.8f. | |
inMaxScale | float | <0.0f, INF> | 1.25f | End of range of possible scales. Default value: 1.25f. | |
inTilingFactor | float | <0.000001f, 1.0f> | 0.2f | Defines relative size of the square tile on the plane during initial detection. Default value: 0.2f. | |
inMinInitialScore | float | <0.0f, 1.0f> | 0.75f | The minimum proportion of points correctly matched during initial detection. Default value: 0.75f. | |
inMaxDeviation | float | <0.0f, INF> | 5.0f | Maximal distance between two points considered matched. Default value: 5.0f. | |
inMinScore | float | <0.0f, 1.0f> | 0.75f | The minimum proportion of points correctly matched. Default value: 0.75f. | |
outObject | AvlNet.Rectangle2D? | Bounding rectangle of the found pattern occurrence. | |||
outAlignedPattern | AvlNet.INullable<System.Collections.Generic.List<AvlNet.Point2D>> | The aligned input pattern points. This parameter cannot be null. | |||
outAlignment | AvlNet.CoordinateSystem2D? | The transform that align the input pattern to the input points. | |||
outPatternSkeleton | AvlNet.INullable<System.Collections.Generic.List<AvlNet.Segment2D>> | The skeleton of the aligned input pattern points. This parameter cannot be null. |