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

AVS.CompareGoldenTemplate_Intensity Method

Compares an image with a template image considered to have no defects.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void CompareGoldenTemplate_Intensity
(
	AvlNet.Image inImage,
	AvlNet.GrayGoldenTemplate inGoldenTemplate,
	AvlNet.CoordinateSystem2D? inGoldenTemplateAlignment,
	float inMaxDifference,
	int inMinDefectRadius,
	AvlNet.Region outDefects,
	AvlNet.Region outDifferenceRegion,
	out bool outDefectsPresent,
	AvlNet.Region outEdgeRegion,
	out AvlNet.Rectangle2D outObjectPosition
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inGoldenTemplateAvlNet.GrayGoldenTemplateGolden gray template containing image of an object with no defects.
inGoldenTemplateAlignmentAvlNet.CoordinateSystem2D?Adjusts the golden template to the position of the inspected object. Default value: atl::NIL.
inMaxDifferencefloat<0.0f, INF>20.0fMaximal allowed difference between corresponding pixels of the input and golden images. Default value: 20.0f.
inMinDefectRadiusint<0, INF>1Minimal radius of a defect. Default value: 1.
outDefectsAvlNet.RegionRegion of detected defects.
outDifferenceRegionAvlNet.RegionRegion of pixels differing too much between the golden image and the input image.
outDefectsPresentboolFlag indicating whether any defects were detected.
outEdgeRegionAvlNet.RegionRegion of pixels that will not be compared.
outObjectPositionAvlNet.Rectangle2DPosition of the object being compared.

Function Overrides

See also