docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct StructuralSimilarityResult

    The result of a Structural Similarity Index Measure texture comparison.

    Implements
    ITextureComparisonResult
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.TestTools.Graphics
    Assembly: UnityEngine.TestTools.Graphics.dll
    Syntax
    public readonly struct StructuralSimilarityResult : ITextureComparisonResult

    Properties

    AverageIndexMeasure

    Average SSIM when multiple reference - comparison images pairs are provided

    Declaration
    public float AverageIndexMeasure { get; init; }
    Property Value
    Type Description
    float

    PerTextureIndexMeasure

    SSIM value for each compared image.

    Declaration
    public float[] PerTextureIndexMeasure { get; init; }
    Property Value
    Type Description
    float[]

    Methods

    ToString()

    Returns a string representation of the SSIM result.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string describing the result

    Overrides
    ValueType.ToString()

    Implements

    ITextureComparisonResult
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)