You are here: Start » AVL.NET » Invoke.CreateGrayModel
Creates a model for NCC or SAD template matching.
Namespace: | Avl |
---|---|
Assembly: | AvlNet.dll |
Syntax
C++
C#
public static void CreateGrayModel ( Avl.Image inImage, Optional<Avl.Region> inTemplateRegion, Optional<Avl.Rectangle2D> inReferenceFrame, int inMinPyramidLevel, Optional<int> inMaxPyramidLevel, float inMinAngle, float inMaxAngle, float inAnglePrecision, float inMinScale, float inMaxScale, float inScalePrecision, Avl.GrayModel outGrayModel, Optional<Avl.Point2D> outGrayModelPoint, Diagnostic<List<Avl.Image>> diagTemplatePyramid )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImage | Avl.Image | Image from which model will be extracted. | ||
![]() | inTemplateRegion | Atl.Optional<Avl.Region> | Region of the image from which model will be extracted. Default value: atl::NIL. | ||
![]() | inReferenceFrame | Atl.Optional<Avl.Rectangle2D> | Exact position of the model object in the image. Default value: atl::NIL. | ||
![]() | inMinPyramidLevel | int | <0, 12> | 0 | Defines the index of the lowest reduced resolution level used to speed up computations. Default value: 0. |
![]() | inMaxPyramidLevel | Atl.Optional<int> | <0, 12> | Defines the number of reduced resolution levels used to speed up computations. Default value: atl::NIL. | |
![]() | inMinAngle | float | 0.0f | Start of range of possible rotations. Default value: 0.0f. | |
![]() | inMaxAngle | float | 0.0f | End of range of possible rotations. Default value: 0.0f. | |
![]() | inAnglePrecision | float | <0.001f, 10.0f> | 1.0f | Defines angular resolution of the matching process. Default value: 1.0f. |
![]() | inMinScale | float | <0.0f, INF> | 1.0f | Start of range of possible scales. Default value: 1.0f. |
![]() | inMaxScale | float | <0.0f, INF> | 1.0f | End of range of possible scales. Default value: 1.0f. |
![]() | inScalePrecision | float | <0.001f, 10.0f> | 1.0f | Defines scale resolution of the matching process. Default value: 1.0f. |
![]() | outGrayModel | Avl.GrayModel | Created model that can be used by LocateMultipleObjects_NCC and LocateMultipleObjects_SAD filters. | ||
![]() | outGrayModelPoint | Atl.Optional<Avl.Point2D> | The middle point of the created model. | ||
![]() | diagTemplatePyramid | Avl.Diagnostic<System.Collections.Generic.List<Avl.Image>> | Visualization of the model at different resolution levels. |