Class InstanceSegmentationDefinition
Annotation definition for an instance segmentation
Implements
Inherited Members
Namespace: UnityEngine.Perception.GroundTruth.Labelers
Assembly: Unity.Perception.Runtime.dll
Syntax
[MovedFrom("UnityEngine.Perception.GroundTruth")]
public class InstanceSegmentationDefinition : AnnotationDefinition, IMessageProducer
Constructors
InstanceSegmentationDefinition(string, 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 |
LabelEntrySpec[] | spec | The label config |
Fields
labelDescription
Default description for the InstanceSegmentationDefinition
Declaration
public const string labelDescription = "Produces an instance segmentation image for each frame. The image will render the pixels of each labeled object in a distinct color."
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
Type of the data object
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 |
---|---|
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 |