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

AVL.CompareGoldenTemplate2

Compares an image with a multi-image model using an ensemble of image features approach.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void CompareGoldenTemplate2
(
	AvlNet.Image inImage,
	AvlNet.GoldenTemplate2Model inModel,
	float inSensitivityA,
	float inSensitivityB,
	AvlNet.Region outDefects
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inModelAvlNet.GoldenTemplate2Model
inSensitivityAfloat<0.0f, INF>1.0fUsually influences small, distinctive defects. Default value: 1.0f.
inSensitivityBfloat<0.0f, INF>0.95fUsually influences bigger, extensive defects. Default value: 0.95f.
outDefectsAvlNet.Region

Description

This filter compares pixels of the input images against a template created by CreateGoldenTemplate2 and creates a region containing only pixels that are different.

The filter expects the object to be positioned precisely and in the same way as object images used to construct the inModel - see CreateGoldenTemplate2.

Sensitivity of the filter can be adjusted using inSensitivityA and inSensitivityB parameters.

See also