Class TiledDeltaEResult
The result of a TiledDeltaEAlgorithm comparison: the average deltaE above the per-pixel threshold, over the whole image and within its most different tile, and whether each is within its threshold.
Implements
Inherited Members
Namespace: UnityEngine.TestTools.Graphics
Assembly: UnityEngine.TestTools.Graphics.dll
Syntax
public sealed class TiledDeltaEResult : ITextureComparisonResult
Properties
AverageDeltaE
The average over every pixel of its deltaE above the per-pixel threshold.
Declaration
public float AverageDeltaE { get; }
Property Value
| Type | Description |
|---|---|
| float |
AverageDeltaEWithinThreshold
Whether AverageDeltaE is within AverageCorrectnessThreshold.
Declaration
public bool AverageDeltaEWithinThreshold { get; }
Property Value
| Type | Description |
|---|---|
| bool |
DifferencePixels
The difference image: grey, brighter where the deltaE between the images is higher, with a frame drawn around every tile over the tiled threshold.
Declaration
public Color32[] DifferencePixels { get; }
Property Value
| Type | Description |
|---|---|
| Color32[] |
MaxTileDeltaE
The score of the most different tile: the average over its pixels of their deltaE above the per-pixel threshold.
Declaration
public float MaxTileDeltaE { get; }
Property Value
| Type | Description |
|---|---|
| float |
MaxTileDeltaEWithinThreshold
Whether MaxTileDeltaE is within MaxTileDeltaEThreshold. When the tile threshold is unset, AverageCorrectnessThreshold is used.
Declaration
public bool MaxTileDeltaEWithinThreshold { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Success
Whether both AverageDeltaEWithinThreshold and MaxTileDeltaEWithinThreshold are true.
Declaration
public bool Success { get; }
Property Value
| Type | Description |
|---|---|
| bool |
WorstTile
The tile that scored MaxTileDeltaE, as an x-y tile coordinate with the origin at the bottom-left tile. When several tiles share the highest score, this is the one in the lowest row, then the lowest column.
Declaration
public Vector2Int WorstTile { get; }
Property Value
| Type | Description |
|---|---|
| Vector2Int |
Methods
ToString()
Describes the comparison: each statistic over its threshold, or that the images matched.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | The failure message, or a line saying there was no difference. |