Struct SemanticSegmentationDefinitionEntry
A mapping between a semantic segmentation color and string label.
Implements
Inherited Members
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 |