You are here: Start » AVL.NET » Function Reference » Computer Vision » Image Analysis » AVL.CreateGoldenTemplate_Edges

AVL.CreateGoldenTemplate_Edges

Creates golden template for application in CompareGoldenTemplate_Edges filter.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void CreateGoldenTemplate_Edges
(
	AvlNet.Image inTemplateImage,
	AvlNet.Rectangle2D? inTemplateArea,
	NullableRef<AvlNet.Region> inMask,
	AvlNet.CoordinateSystem2D? inTemplateAreaAlignment,
	float inStdDevX,
	float? inStdDevY,
	float inEdgeThreshold,
	float inEdgeHysteresis,
	AvlNet.EdgeGoldenTemplate outGoldenTemplate
)

Parameters

Name Type Range Default Description
inTemplateImageAvlNet.ImageTemplate image containing an object with no defects.
inTemplateAreaAvlNet.Rectangle2D?Desired area to compare. Default value: atl::NIL.
inMaskAvlNet.NullableRef<AvlNet.Region>Range of pixels to compare. Default value: atl::NIL.
inTemplateAreaAlignmentAvlNet.CoordinateSystem2D?Alignment of template bounded by inTemplateArea. Default value: atl::NIL.
inStdDevXfloat<0.0f, INF>2.0fAmount of horizontal smoothing used by the edge filter. Default value: 2.0f.
inStdDevYfloat?<0.0f, INF>Amount of vertical smoothing used by the edge filter (Auto = inStdDevX). Default value: atl::NIL.
inEdgeThresholdfloat<0.0f, INF>35.0fSufficient edge strength; edges of that strength will always be detected on the template image. Default value: 35.0f.
inEdgeHysteresisfloat<0.0f, INF>15.0fValue by which the edge threshold is decreased for edge points neighboring with sufficiently strong edges. Default value: 15.0f.
outGoldenTemplateAvlNet.EdgeGoldenTemplateThe 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

See also