You are here: Start » AVL.NET » Function Reference » System » Assertions » 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 | |
---|---|---|---|---|---|
inImage | AvlNet.Image | Input image. | |||
inExpectedImage | AvlNet.Image | ||||
inMaxDifference | float | <0.0f, INF> | 0.0f | Maximum absolute difference between a specific pixel of the two images. Default value: 0.0f. | |
inDescription | string |
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. |