You are here: Start » FIL.NET » Function Reference » Computer Vision » Image Analysis » FIL.CreateGoldenTemplate_Edges
Creates golden template for application in CompareGoldenTemplate_Edges filter.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
public static void CreateGoldenTemplate_Edges ( FilNet.Image inTemplateImage, float inStdDevX, float inEdgeThreshold, float inEdgeHysteresis, FilNet.EdgeGoldenTemplate outGoldenTemplate )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inTemplateImage | FilNet.Image | Template image containing an object with no defects. | ||
![]() | inStdDevX | float | <0.0f, INF> | 2.0f | Amount of horizontal smoothing used by the edge filter. Default value: 2.0f. |
![]() | inEdgeThreshold | float | <0.0f, INF> | 35.0f | Sufficient edge strength; edges of that strength will always be detected on the template image. Default value: 35.0f. |
![]() | inEdgeHysteresis | float | <0.0f, INF> | 15.0f | Value by which the edge threshold is decreased for edge points neighboring with sufficiently strong edges. Default value: 15.0f. |
![]() | outGoldenTemplate | FilNet.EdgeGoldenTemplate | The output golden template structure. |
Description
This filter creates a template structure that can be later used in CompareGoldenTemplate_Edges filter.
This method is especially useful for finding defects of the object shape. Due to invulnerability to color changes, it may be used in appliances with changing light conditions.
More information about this technique can be found in Machine Vision Guide: Golden Template.
Remarks
Due to performance, it is recommended to create a template outside a main loop of a program. It will create a model only once, instead of each iteration.
Function Overrides
- CreateGoldenTemplate_Edges(Image, Nullable<Rectangle2D>, NullableRef<Region>, Nullable<CoordinateSystem2D>, Single, Nullable<Single>, Single, Single, EdgeGoldenTemplate)
- CreateGoldenTemplate_Edges(Image, Nullable<Rectangle2D>, NullableRef<Region>, Nullable<CoordinateSystem2D>, Single, Nullable<Single>, Single, Single, EdgeGoldenTemplate, Image, Region, Region)