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, FilNet.Rectangle2D? inTemplateArea, NullableRef<FilNet.Region> inMask, FilNet.CoordinateSystem2D? inTemplateAreaAlignment, float inStdDevX, float? inStdDevY, float inEdgeThreshold, float inEdgeHysteresis, FilNet.EdgeGoldenTemplate outGoldenTemplate, FilNet.Image diagCroppedImage, FilNet.Region diagCroppedEdges, FilNet.Region diagEdges )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inTemplateImage | FilNet.Image | Template image containing an object with no defects. | ||
![]() | inTemplateArea | FilNet.Rectangle2D? | Desired area to compare. Default value: ftl::NIL. | ||
![]() | inMask | FilNet.NullableRef<FilNet.Region> | Range of pixels to compare. Default value: ftl::NIL. | ||
![]() | inTemplateAreaAlignment | FilNet.CoordinateSystem2D? | Alignment of template bounded by inTemplateArea. Default value: ftl::NIL. | ||
![]() | inStdDevX | float | <0.0f, INF> | 2.0f | Amount of horizontal smoothing used by the edge filter. Default value: 2.0f. |
![]() | inStdDevY | float? | <0.0f, INF> | Amount of vertical smoothing used by the edge filter (Auto = inStdDevX). Default value: ftl::NIL. | |
![]() | 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. | ||
![]() | diagCroppedImage | FilNet.Image | Cropped image to be analyzed. | ||
![]() | diagCroppedEdges | FilNet.Region | Edges found on the cropped image. | ||
![]() | diagEdges | FilNet.Region | Edges projected onto the input image. |
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, Single, Single, Single, EdgeGoldenTemplate)
- CreateGoldenTemplate_Edges(Image, Nullable<Rectangle2D>, NullableRef<Region>, Nullable<CoordinateSystem2D>, Single, Nullable<Single>, Single, Single, EdgeGoldenTemplate)