Class InstanceSegmentationDefinition
Annotation definition for an instance segmentation
Namespace: UnityEngine.Perception.GroundTruth
Syntax
public class InstanceSegmentationDefinition : AnnotationDefinition, IMessageProducer
Constructors
InstanceSegmentationDefinition(String, IdLabelConfig.LabelEntrySpec[])
Creates an instance segmentation definition.
Declaration
public InstanceSegmentationDefinition(string id, IdLabelConfig.LabelEntrySpec[] spec)
Parameters
Type | Name | Description |
---|---|---|
String | id | The registered ID for this definition |
IdLabelConfig.LabelEntrySpec[] | spec | The label config |
Fields
labelDescription
Declaration
public const string labelDescription = null
Field Value
Type | Description |
---|---|
String |
Properties
description
The description of the annotation.
Declaration
public override string description { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
modelType
Declaration
public override string modelType { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
spec
Label config for the simulation
Declaration
public IdLabelConfig.LabelEntrySpec[] spec { get; }
Property Value
Type | Description |
---|---|
IdLabelConfig.LabelEntrySpec[] |
Methods
ToMessage(IMessageBuilder)
Convert contents int a message.
Declaration
public override void ToMessage(IMessageBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
IMessageBuilder | builder | The message builder that will convert the class's contents into a message |