You are here: Start » AVL.NET » Invoke.LocateSingleObject_Elastic
Finds a single occurrence of a predefined template on an image by comparing object edges.
Namespace: | Avl |
---|---|
Assembly: | AvlNet.dll |
Syntax
C++
C#
public static void LocateSingleObject_Elastic ( Avl.Image inImage, Optional<Avl.ShapeRegion> inSearchRegion, Optional<Avl.CoordinateSystem2D> inSearchRegionAlignment, Avl.EdgeModel_Elastic inEdgeModel, Avl.ElasticMatchingDetectionStrategy inDetectionStrategy, float inEdgeThreshold, float inMinAspectRatio, float inMaxAspectRatio, float inMinScore, Conditional<Avl.Object2D> outObject, Optional<Conditional<List<Avl.Path>>> outObjectEdges )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImage | Avl.Image | Image on which object occurrences will be searched. | ||
![]() | inSearchRegion | Atl.Optional<Avl.ShapeRegion> | Region of possible object centers. Default value: atl::NIL. | ||
![]() | inSearchRegionAlignment | Atl.Optional<Avl.CoordinateSystem2D> | Adjusts the region of interest to the position of the inspected object. Default value: atl::NIL. | ||
![]() | inEdgeModel | Avl.EdgeModel_Elastic | Model of objects to be searched. | ||
![]() | inDetectionStrategy | Avl.ElasticMatchingDetectionStrategy | Fast | Specifies initial candidates detection mode. Default value: Fast. | |
![]() | inEdgeThreshold | float | <0.01f, INF> | 10.0f | Minimum strength of edges used for matching with the model. Default value: 10.0f. |
![]() | inMinAspectRatio | float | <0.5f, 2.0f> | 1.0f | Minimum expected aspect ratio of object occurrence being found. Default value: 1.0f. |
![]() | inMaxAspectRatio | float | <0.5f, 2.0f> | 1.0f | Maximum expected aspect ratio of object occurrence being found. Default value: 1.0f. |
![]() | inMinScore | float | <0.0f, 1.0f> | 0.7f | Minimum score of an object occurrence. Default value: 0.7f. |
![]() | outObject | Atl.Conditional<Avl.Object2D> | Found object. | ||
![]() | outObjectEdges | Atl.Optional<Atl.Conditional<System.Collections.Generic.List<Avl.Path>>> | Model edges of the found object. |