Struct PixelEvaluationGuide
A struct that contains the evaluation guide for pixel evaluation.
Implements
Inherited Members
Namespace: UnityEngine.TestTools.Graphics.LegacyColorDifference
Assembly: UnityEngine.TestTools.Graphics.dll
Syntax
public readonly struct PixelEvaluationGuide : ITextureComparisonSettings
Constructors
PixelEvaluationGuide(ImageComparisonSettings)
Initializes a new instance of the PixelEvaluationGuide by evaluating the different flags in the more general ImageComparisonSettings.
Declaration
public PixelEvaluationGuide(ImageComparisonSettings settings)
Parameters
| Type | Name | Description |
|---|---|---|
| ImageComparisonSettings | settings | settings that need to be converted to evaluation guide. |
Properties
AlphaThreshold
Gets the per-pixel alpha threshold
Declaration
public float AlphaThreshold { get; init; }
Property Value
| Type | Description |
|---|---|
| float |
AverageCorrectnessThreshold
Gets the average correctness threshold, which is the average of all deltaE values exceeding the deltaE threshold
Declaration
public float AverageCorrectnessThreshold { get; init; }
Property Value
| Type | Description |
|---|---|
| float |
DeltaEThreshold
Gets the per-pixel DeltaE Threshold
Declaration
public float DeltaEThreshold { get; init; }
Property Value
| Type | Description |
|---|---|
| float |
GammaThreshold
Gets the per-pixel GammaThreshold
Declaration
public float GammaThreshold { get; init; }
Property Value
| Type | Description |
|---|---|
| float |
IncorrectPixelsThreshold
Gets the threshold of incorrect pixels, which is the ratio of pixels above one of the settings
Declaration
public float IncorrectPixelsThreshold { get; init; }
Property Value
| Type | Description |
|---|---|
| float |
Methods
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |