You are here: Start » AVL.NET » AVS.CompareGoldenTemplate_Edges Method

AVS.CompareGoldenTemplate_Edges Method

Compares image edges with the edges of a perfect template. Significant differences are considered defects.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void CompareGoldenTemplate_Edges
(
	AvlNet.Image inImage,
	AvlNet.EdgeGoldenTemplate inGoldenTemplate,
	AvlNet.CoordinateSystem2D inGoldenTemplateAlignment,
	float inStdDevX,
	float? inStdDevY,
	float inEdgeThreshold,
	float inEdgeHysteresis,
	int inMaxDistance,
	AvlNet.Region outDefects,
	out bool outDefectsPresent,
	AvlNet.Region outMissingEdges,
	AvlNet.Region outExcessiveEdges
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inGoldenTemplateAvlNet.EdgeGoldenTemplateGolden edge template containing image with no defects.
inGoldenTemplateAlignmentAvlNet.CoordinateSystem2DAdjusts the golden template to the position of the inspected object.
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 input 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.
inMaxDistanceint<0, INF>3Maximal allowed distance between corresponding edges on the input and golden image. Default value: 3.
outDefectsAvlNet.RegionRegion of detected defects.
outDefectsPresentboolFlag indicating whether any defects were detected.
outMissingEdgesAvlNet.RegionEdges present on the golden image that are missing on the input image.
outExcessiveEdgesAvlNet.RegionEdges that are not present on the golden image.

Function Overrides

See also