You are here: Start » AVL.NET » Function Reference » System » Assertions » AVL.AssertImageEqualTo

AVL.AssertImageEqualTo

Asserts that two images are equal or differ by a small given margin.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void AssertImageEqualTo
(
	AvlNet.Image inImage,
	AvlNet.Image inExpectedImage,
	float inMaxDifference,
	string inDescription
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inExpectedImageAvlNet.Image
inMaxDifferencefloat<0.0f, INF>0.0fMaximum absolute difference between a specific pixel of the two images. Default value: 0.0f.
inDescriptionstring

Errors

List of possible exceptions:

Error type Description
DomainError Input images have different pixel formats in AssertImageEqualTo.
DomainError Input images have different sizes in AssertImageEqualTo.

Function Overrides

See also