docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SemanticSegmentationDefinitionEntry

    A mapping between a semantic segmentation color and string label.

    Implements
    IMessageProducer
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Perception.GroundTruth.Labelers
    Assembly: Unity.Perception.Runtime.dll
    Syntax
    [MovedFrom("UnityEngine.Perception.GroundTruth")]
    public struct SemanticSegmentationDefinitionEntry : IMessageProducer

    Constructors

    SemanticSegmentationDefinitionEntry(string, Color)

    Constructs a new SemanticSegmentationDefinitionEntry.

    Declaration
    public SemanticSegmentationDefinitionEntry(string name, Color pixelValue)
    Parameters
    Type Name Description
    string name

    The label name.

    Color pixelValue

    The label color.

    Properties

    labelName

    The name of the label.

    Declaration
    public string labelName { readonly get; set; }
    Property Value
    Type Description
    string

    pixelValue

    The label color.

    Declaration
    public Color32 pixelValue { readonly get; set; }
    Property Value
    Type Description
    Color32

    Methods

    ToMessage(IMessageBuilder)

    Convert contents int a message.

    Declaration
    public void ToMessage(IMessageBuilder builder)
    Parameters
    Type Name Description
    IMessageBuilder builder

    The message builder that will convert the class's contents into a message

    Implements

    IMessageProducer
    In This Article
    Back to top
    Copyright © 2024 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)