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

AVL.CreateGoldenTemplate_Intensity

Creates golden template for application in CompareGoldenTemplate_Intensity filter.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void CreateGoldenTemplate_Intensity
(
	AvlNet.Image inTemplateImage,
	float inEdgeThreshold,
	int inEdgeDilation,
	AvlNet.GrayGoldenTemplate outGoldenTemplate
)

Parameters

Name Type Range Default Description
inTemplateImageAvlNet.ImageTemplate image containing an object with no defects.
inEdgeThresholdfloat<0.0f, INF>10.0fMinimum strength of edges on the golden image near which comparison is NOT performed. Default value: 10.0f.
inEdgeDilationint<0, 1000000>1Defines for how far from the detected edges comparison is NOT performed. Default value: 1.
outGoldenTemplateAvlNet.GrayGoldenTemplateThe output golden template structure.

Description

This filter creates a template structure that can be later used in CompareGoldenTemplate_Intensity filter. This golden template method is especially useful for finding defects like: smudges, noises and dust particles. It can be used for finding missing holes or changes in complex shapes.

Filter finds edges on an image and removes nearby pixels to avoid comparing pixels near edges which may contains some distortions due to shadows or changes in lightning. Input inEdgeDilation defines the width of the quiet zone around the edges and the parameter inEdgeThreshold define how strong must be change of the color between pixels to treat them as an edge.

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